Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion navigator/src/epub/frame/FrameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class FrameManager {
this.frame.onerror = (err) => {
try { rej(err); } catch (error) {}
}
this.frame.contentWindow!.location.replace(this.source);
this.frame.src = this.source;
});
}

Expand Down
4 changes: 2 additions & 2 deletions navigator/src/epub/fxl/FXLFrameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class FXLFrameManager {
try { rej(e.error); this.loadPromise = undefined; } catch (error) {};
}, { once: true });
this.frame.style.removeProperty("display");
this.frame.contentWindow!.location.replace(this.source);
this.frame.src = this.source;
});
return this.loadPromise;
}
Expand Down Expand Up @@ -187,7 +187,7 @@ export class FXLFrameManager {
try { this.showPromise = undefined; rej(e.error); } catch (error) {};
}, { once: true });
this.source = "about:blank";
this.frame.contentWindow!.location.replace("about:blank");
this.frame.src = this.source;
this.frame.style.display = "none";
});
}
Expand Down
2 changes: 1 addition & 1 deletion navigator/src/webpub/WebPubFrameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class WebPubFrameManager {
this.frame.onerror = (err) => {
try { rej(err); } catch (error) {}
}
this.frame.contentWindow!.location.replace(this.source);
this.frame.src = this.source;
});
}

Expand Down