Skip to content

Commit

Permalink
[hypothesis#6475] Whenever an iframe changes location Hypothesis need…
Browse files Browse the repository at this point in the history
…s to be injected again
  • Loading branch information
jwgmeligmeyling committed Jul 27, 2024
1 parent f4e5e98 commit 9e3cc94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/annotator/frame-observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ export class FrameObserver {
frameWindow!.addEventListener('unload', () => {
this._removeFrame(frame);
});
frame.addEventListener('load', () => {
this._addFrame(frame);
});
this._onFrameAdded(frame);
} catch (e) {
console.warn(
Expand Down

0 comments on commit 9e3cc94

Please sign in to comment.