aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-15 17:22:26 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-16 19:54:41 -0500
commitfab0d703581a57aa7aa6d50a640b291a944708a2 (patch)
tree4e698852c7db9920b18c1438c550ef9fc6c4e55f /ext/fg
parent2c3a145866106940682dc8a4a1e2377f8ab63013 (diff)
Move popup public properties
Diffstat (limited to 'ext/fg')
-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('/');