Fix: Onedrive sync is broken on Firefox (#854)

* Update lock file

* Fix: Onedrive sync is broken on Firefox
This commit is contained in:
eight 2020-02-15 00:51:00 +08:00 committed by GitHub
parent 0defa94c6e
commit 9f2261ae95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* global chromeLocal promisify */ /* global chromeLocal promisify FIREFOX */
/* exported tokenManager */ /* exported tokenManager */
'use strict'; 'use strict';
@ -43,7 +43,9 @@ const tokenManager = (() => {
clientSecret: '9Pj=TpsrStq8K@1BiwB9PIWLppM:@s=w', clientSecret: '9Pj=TpsrStq8K@1BiwB9PIWLppM:@s=w',
authURL: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize', authURL: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
tokenURL: 'https://login.microsoftonline.com/common/oauth2/v2.0/token', tokenURL: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
redirect_uri: 'https://' + location.hostname + '.chromiumapp.org/', redirect_uri: FIREFOX ?
'https://clngdbkpkpeebahjckkjfobafhncgmne.chromiumapp.org/' :
'https://' + location.hostname + '.chromiumapp.org/',
scopes: ['Files.ReadWrite.AppFolder', 'offline_access'] scopes: ['Files.ReadWrite.AppFolder', 'offline_access']
} }
}; };

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "Stylus", "name": "Stylus",
"version": "1.5.6", "version": "1.5.8",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {