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();
}
// 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('/');