Skip to content

Commit

Permalink
fix undefined comms error (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
chocolatkey authored May 26, 2024
1 parent 4ccd573 commit 71325a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion navigator/src/epub/fxl/FXLFrameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ export default class FXLFrameManager {

async activate(): Promise<void> {
return new Promise<void>((res, _) => {
this.comms!.send("activate", undefined, () => {
if(!this.comms) return res(); // TODO: investigate when this is the case
this.comms?.send("activate", undefined, () => {
res();
});
});
Expand Down

0 comments on commit 71325a7

Please sign in to comment.