From 06e70c1cd8a6e23b54ba9081caf82902820ceccd Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 21 Nov 2021 15:08:39 -0500 Subject: FrameOffsetForwarder fixes (#2017) * Fix handling of null iframe rect * Handle errors inside of getOffset --- ext/js/app/popup-proxy.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ext/js/app') diff --git a/ext/js/app/popup-proxy.js b/ext/js/app/popup-proxy.js index 85014c47..3e95ff2a 100644 --- a/ext/js/app/popup-proxy.js +++ b/ext/js/app/popup-proxy.js @@ -316,12 +316,7 @@ class PopupProxy extends EventDispatcher { async _updateFrameOffsetInner(now) { this._frameOffsetPromise = this._frameOffsetForwarder.getOffset(); try { - let offset = null; - try { - offset = await this._frameOffsetPromise; - } catch (e) { - // NOP - } + const offset = await this._frameOffsetPromise; this._frameOffset = offset !== null ? offset : [0, 0]; if (offset === null) { this.trigger('offsetNotFound'); -- cgit v1.2.3