aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/UserStore.js
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-04-22 15:04:21 -0500
committerLibravatar GitHub <noreply@github.com>2022-04-22 20:04:21 +0000
commit759d93dc198a3cc8c5265245c0144efa5435682b (patch)
tree53e963a085d3d12af5a2efa2f1ab6f3e5574edc7 /src/stores/UserStore.js
parentAdded build scripts for linux, macos and windows to help new contributors get... (diff)
downloadferdium-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.js5
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';
10import Request from './lib/Request'; 10import Request from './lib/Request';
11import CachedRequest from './lib/CachedRequest'; 11import CachedRequest from './lib/CachedRequest';
12 12
13const 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
16export default class UserStore extends Store { 17export 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,