Move popup public properties

This commit is contained in:
toasted-nutbread 2019-12-15 17:22:26 -05:00
parent 2c3a145866
commit fab0d70358

View File

@ -42,6 +42,12 @@ class Popup {
this.updateVisibility(); this.updateVisibility();
} }
// Public properties
get url() {
return window.location.href;
}
inject() { inject() {
if (this.injectPromise === null) { if (this.injectPromise === null) {
this.injectPromise = this.createInjectPromise(); this.injectPromise = this.createInjectPromise();
@ -384,10 +390,6 @@ class Popup {
} }
} }
get url() {
return window.location.href;
}
static isOnExtensionPage() { static isOnExtensionPage() {
try { try {
const url = chrome.runtime.getURL('/'); const url = chrome.runtime.getURL('/');