diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-04-22 15:04:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 20:04:21 +0000 |
commit | 759d93dc198a3cc8c5265245c0144efa5435682b (patch) | |
tree | 53e963a085d3d12af5a2efa2f1ab6f3e5574edc7 /src/stores/UserStore.js | |
parent | Added build scripts for linux, macos and windows to help new contributors get... (diff) | |
download | ferdium-app-759d93dc198a3cc8c5265245c0144efa5435682b.tar.gz ferdium-app-759d93dc198a3cc8c5265245c0144efa5435682b.tar.zst ferdium-app-759d93dc198a3cc8c5265245c0144efa5435682b.zip |
Turn off usage of 'debug' npm package using with electron-16 (fixes #17)
Diffstat (limited to 'src/stores/UserStore.js')
-rw-r--r-- | src/stores/UserStore.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index 787ffbb56..8c413a065 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js | |||
@@ -10,7 +10,8 @@ import Store from './lib/Store'; | |||
10 | import Request from './lib/Request'; | 10 | import Request from './lib/Request'; |
11 | import CachedRequest from './lib/CachedRequest'; | 11 | import CachedRequest from './lib/CachedRequest'; |
12 | 12 | ||
13 | const debug = require('debug')('Ferdium:UserStore'); | 13 | // TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed |
14 | // const debug = require('debug')('Ferdium:UserStore'); | ||
14 | 15 | ||
15 | // TODO: split stores into UserStore and AuthStore | 16 | // TODO: split stores into UserStore and AuthStore |
16 | export default class UserStore extends Store { | 17 | export default class UserStore extends Store { |
@@ -394,7 +395,7 @@ export default class UserStore extends Store { | |||
394 | } | 395 | } |
395 | 396 | ||
396 | if (!this.data.locale) { | 397 | if (!this.data.locale) { |
397 | debug('Migrate "locale" to user data'); | 398 | console.log('Migrate "locale" to user data'); |
398 | this.actions.user.update({ | 399 | this.actions.user.update({ |
399 | userData: { | 400 | userData: { |
400 | locale: this.stores.app.locale, | 401 | locale: this.stores.app.locale, |