diff options
Diffstat (limited to 'src/api/utils')
-rw-r--r-- | src/api/utils/auth.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/utils/auth.js b/src/api/utils/auth.js index 6dbdeaa7f..5952cfe11 100644 --- a/src/api/utils/auth.js +++ b/src/api/utils/auth.js | |||
@@ -1,8 +1,6 @@ | |||
1 | import { remote } from 'electron'; | 1 | import { app } from '@electron/remote'; |
2 | import localStorage from 'mobx-localstorage'; | 2 | import localStorage from 'mobx-localstorage'; |
3 | 3 | ||
4 | const { app } = remote; | ||
5 | |||
6 | export const prepareAuthRequest = (options = { method: 'GET' }, auth = true) => { | 4 | export const prepareAuthRequest = (options = { method: 'GET' }, auth = true) => { |
7 | const request = Object.assign(options, { | 5 | const request = Object.assign(options, { |
8 | mode: 'cors', | 6 | mode: 'cors', |