From 9e3cc94416eecf8e345d77c6e56322e53cd23170 Mon Sep 17 00:00:00 2001 From: Jan-Willem Gmelig Meyling Date: Sat, 27 Jul 2024 21:32:05 +0200 Subject: [PATCH] [#6475] Whenever an iframe changes location Hypothesis needs to be injected again --- src/annotator/frame-observer.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/annotator/frame-observer.ts b/src/annotator/frame-observer.ts index b3f41d98859..7f83d47df06 100644 --- a/src/annotator/frame-observer.ts +++ b/src/annotator/frame-observer.ts @@ -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(