summaryrefslogtreecommitdiff
path: root/ext/js/app/popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/app/popup.js')
-rw-r--r--ext/js/app/popup.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/js/app/popup.js b/ext/js/app/popup.js
index 44cca14a..af8645e4 100644
--- a/ext/js/app/popup.js
+++ b/ext/js/app/popup.js
@@ -664,11 +664,10 @@ class Popup extends EventDispatcher {
}
}
- const body = document.body;
return {
left: 0,
top: 0,
- right: (body !== null ? body.clientWidth : 0),
+ right: window.innerWidth,
bottom: window.innerHeight
};
}