diff --git a/background/token-manager.js b/background/token-manager.js index 272f431e..43898b45 100644 --- a/background/token-manager.js +++ b/background/token-manager.js @@ -53,8 +53,8 @@ const tokenMan = (() => { clientId: 'zeDmKhJIfJqULtcrGMsWaxRtWHEimKgS', clientSecret: 'wqHsvTuThQmXmDiVvOpZxPwSIbyycNFImpAOTxjaIRqDbsXcTOqrymMJKsOMuibFaij' + 'ZZAkVYTDbLkQuYFKqgpMsMlFlgwQOYHvHFbgxQHDTwwdOroYhOwFuekCwXUlk', - authURL: URLS.usw + 'api/oauth/authorize_style', - tokenURL: URLS.usw + 'api/oauth/access_token', + authURL: URLS.usw + 'api/oauth/style/link', + tokenURL: URLS.usw + 'api/oauth/token', redirect_uri: 'https://gusted.xyz/callback_helper/', }, }; diff --git a/content/install-hook-userstylesworld.js b/content/install-hook-userstylesworld.js index d7bab17c..dfcf6d84 100644 --- a/content/install-hook-userstylesworld.js +++ b/content/install-hook-userstylesworld.js @@ -17,7 +17,7 @@ ) { sendPostMessage({type: 'usw-remove-stylus-button'}); - if (location.pathname === '/api/oauth/authorize_style/new') { + if (location.pathname === '/api/oauth/style/new') { API.styles.find({_isUswLinked: true}).then(style => { sendPostMessage({type: 'usw-fill-new-style', data: style}); });