Move popup public properties
This commit is contained in:
parent
2c3a145866
commit
fab0d70358
@ -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('/');
|
||||||
|
Loading…
Reference in New Issue
Block a user