From 562cfd74708c47c93f22d809c9d3064ab099bfce Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 3 Jul 2020 11:58:52 -0400 Subject: Make PopupProxy._frameOffsetExpireTimeout non-static (#640) --- ext/fg/js/popup-proxy.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ext/fg/js/popup-proxy.js') diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js index a6602eae..3f4473c6 100644 --- a/ext/fg/js/popup-proxy.js +++ b/ext/fg/js/popup-proxy.js @@ -31,6 +31,7 @@ class PopupProxy extends EventDispatcher { this._frameOffset = null; this._frameOffsetPromise = null; this._frameOffsetUpdatedAt = null; + this._frameOffsetExpireTimeout = 1000; } // Public properties @@ -113,7 +114,7 @@ class PopupProxy extends EventDispatcher { async _updateFrameOffset() { const now = Date.now(); const firstRun = this._frameOffsetUpdatedAt === null; - const expired = firstRun || this._frameOffsetUpdatedAt < now - PopupProxy._frameOffsetExpireTimeout; + const expired = firstRun || this._frameOffsetUpdatedAt < now - this._frameOffsetExpireTimeout; if (this._frameOffsetPromise === null && !expired) { return; } if (this._frameOffsetPromise !== null) { @@ -151,5 +152,3 @@ class PopupProxy extends EventDispatcher { return [x + offsetX, y + offsetY]; } } - -PopupProxy._frameOffsetExpireTimeout = 1000; -- cgit v1.2.3