aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r--ext/fg/js/popup.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 42475d96..9e80a379 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -42,6 +42,12 @@ class Popup {
this.updateVisibility();
}
+ // Public properties
+
+ get url() {
+ return window.location.href;
+ }
+
inject() {
if (this.injectPromise === null) {
this.injectPromise = this.createInjectPromise();
@@ -384,10 +390,6 @@ class Popup {
}
}
- get url() {
- return window.location.href;
- }
-
static isOnExtensionPage() {
try {
const url = chrome.runtime.getURL('/');