Nested WACZ + embed reloading fix (#374)
- Loading: Fix for loading nested WACZ files (via wabac.js 2.20.7) - Embeds: Support full reload on embeds via fullReload() call on embed web component
This commit is contained in:
@@ -126,6 +126,13 @@ class Embed extends LitElement {
|
||||
}
|
||||
}
|
||||
|
||||
fullReload() {
|
||||
const iframe = this.renderRoot.querySelector("iframe");
|
||||
if (iframe?.contentWindow) {
|
||||
iframe.contentWindow.postMessage({ type: "fullReload" });
|
||||
}
|
||||
}
|
||||
|
||||
handleMessage(event: IframeMessage) {
|
||||
const iframe = this.renderRoot.querySelector("iframe");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user