diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-10 23:12:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 04:12:31 +0000 |
commit | e8079a68acba6077ab621757ac236be4206b0996 (patch) | |
tree | ff3987c60130c19a76d6c189b7c11fcc6d2d8fb2 /ext/js/application.js | |
parent | 765f1ede668f70e3af7717bf4d5f05dbf009c7f8 (diff) |
Move isExtensionUrl into WebExtension (#666)
Diffstat (limited to 'ext/js/application.js')
-rw-r--r-- | ext/js/application.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/ext/js/application.js b/ext/js/application.js index 227e9d5e..d7ab6725 100644 --- a/ext/js/application.js +++ b/ext/js/application.js @@ -76,14 +76,6 @@ export class Application extends EventDispatcher { // NOP } - /** @type {?string} */ - this._extensionUrlBase = null; - try { - this._extensionUrlBase = this._webExtension.getUrl('/'); - } catch (e) { - // NOP - } - /** @type {?boolean} */ this._isBackground = null; /** @type {API} */ @@ -148,15 +140,6 @@ export class Application extends EventDispatcher { this._webExtension.sendMessagePromise({action: 'applicationReady'}); } - /** - * Checks whether or not a URL is an extension URL. - * @param {string} url The URL to check. - * @returns {boolean} `true` if the URL is an extension URL, `false` otherwise. - */ - isExtensionUrl(url) { - return this._extensionUrlBase !== null && url.startsWith(this._extensionUrlBase); - } - /** */ triggerStorageChanged() { this.trigger('storageChanged', {}); |