From 6b9dafe4ef8eb71364f6686d805a6ce7ab8b1cc5 Mon Sep 17 00:00:00 2001 From: Gusted Date: Tue, 8 Jun 2021 18:42:22 +0200 Subject: [PATCH] don't use `window.` --- content/install-hook-userstylesworld.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/install-hook-userstylesworld.js b/content/install-hook-userstylesworld.js index 6a7ae5a6..22bcfcb6 100644 --- a/content/install-hook-userstylesworld.js +++ b/content/install-hook-userstylesworld.js @@ -17,7 +17,7 @@ ) { sendPostMessage({type: 'usw-remove-stylus-button'}); - if (window.location.pathname === '/api/oauth/authorize_style/new') { + if (location.pathname === '/api/oauth/authorize_style/new') { API.styles.find({_linking: true}).then(style => { console.log(style); sendPostMessage({type: 'usw-fill-new-style', data: style});