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