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/dom/style-util.js | |
parent | 765f1ede668f70e3af7717bf4d5f05dbf009c7f8 (diff) |
Move isExtensionUrl into WebExtension (#666)
Diffstat (limited to 'ext/js/dom/style-util.js')
-rw-r--r-- | ext/js/dom/style-util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/dom/style-util.js b/ext/js/dom/style-util.js index e5046e5c..c2c620f6 100644 --- a/ext/js/dom/style-util.js +++ b/ext/js/dom/style-util.js @@ -62,7 +62,7 @@ function setInjectedStylesheet(id, parentNode, value) { * @throws {Error} */ export async function loadStyle(application, id, type, value, useWebExtensionApi = false, parentNode = null) { - if (useWebExtensionApi && application.isExtensionUrl(window.location.href)) { + if (useWebExtensionApi && application.webExtension.isExtensionUrl(window.location.href)) { // Permissions error will occur if trying to use the WebExtension API to inject into an extension page useWebExtensionApi = false; } |