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});