aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/fg/js/popup-proxy.js5
1 files changed, 2 insertions, 3 deletions
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;