From fab0d703581a57aa7aa6d50a640b291a944708a2 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 15 Dec 2019 17:22:26 -0500 Subject: Move popup public properties --- ext/fg/js/popup.js | 10 ++++++---- 1 file 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('/'); -- cgit v1.2.3