aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dom
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/dom')
-rw-r--r--ext/js/dom/style-util.js2
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;
}