From 9f2261ae9521a5a95e34f7667ed5e18b4ce3f29d Mon Sep 17 00:00:00 2001 From: eight Date: Sat, 15 Feb 2020 00:51:00 +0800 Subject: [PATCH] Fix: Onedrive sync is broken on Firefox (#854) * Update lock file * Fix: Onedrive sync is broken on Firefox --- background/token-manager.js | 6 ++++-- package-lock.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/background/token-manager.js b/background/token-manager.js index 561cb70f..0b0fd3e0 100644 --- a/background/token-manager.js +++ b/background/token-manager.js @@ -1,4 +1,4 @@ -/* global chromeLocal promisify */ +/* global chromeLocal promisify FIREFOX */ /* exported tokenManager */ 'use strict'; @@ -43,7 +43,9 @@ const tokenManager = (() => { clientSecret: '9Pj=TpsrStq8K@1BiwB9PIWLppM:@s=w', authURL: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize', 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'] } }; diff --git a/package-lock.json b/package-lock.json index 6542403c..1da45a18 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "Stylus", - "version": "1.5.6", + "version": "1.5.8", "lockfileVersion": 1, "requires": true, "dependencies": {