aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/store.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/features/workspaces/store.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/features/workspaces/store.js')
-rw-r--r--src/features/workspaces/store.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js
index 1f3d57c24..d2ccfeccf 100644
--- a/src/features/workspaces/store.js
+++ b/src/features/workspaces/store.js
@@ -15,7 +15,8 @@ import { createActionBindings } from '../utils/ActionBinding';
15 15
16import { KEEP_WS_LOADED_USID } from '../../config'; 16import { KEEP_WS_LOADED_USID } from '../../config';
17 17
18const debug = require('debug')('Ferdium:feature:workspaces:store'); 18// TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed
19// const debug = require('debug')('Ferdium:feature:workspaces:store');
19 20
20export default class WorkspacesStore extends FeatureStore { 21export default class WorkspacesStore extends FeatureStore {
21 @observable isFeatureActive = false; 22 @observable isFeatureActive = false;
@@ -69,7 +70,7 @@ export default class WorkspacesStore extends FeatureStore {
69 // ========== PUBLIC API ========= // 70 // ========== PUBLIC API ========= //
70 71
71 @action start(stores, actions) { 72 @action start(stores, actions) {
72 debug('WorkspacesStore::start'); 73 console.log('WorkspacesStore::start');
73 this.stores = stores; 74 this.stores = stores;
74 this.actions = actions; 75 this.actions = actions;
75 76
@@ -115,7 +116,7 @@ export default class WorkspacesStore extends FeatureStore {
115 116
116 @action stop() { 117 @action stop() {
117 super.stop(); 118 super.stop();
118 debug('WorkspacesStore::stop'); 119 console.log('WorkspacesStore::stop');
119 this.reset(); 120 this.reset();
120 this.isFeatureActive = false; 121 this.isFeatureActive = false;
121 } 122 }
@@ -273,7 +274,7 @@ export default class WorkspacesStore extends FeatureStore {
273 }; 274 };
274 275
275 _activateLastUsedWorkspaceReaction = () => { 276 _activateLastUsedWorkspaceReaction = () => {
276 debug('_activateLastUsedWorkspaceReaction'); 277 console.log('_activateLastUsedWorkspaceReaction');
277 if (!this.activeWorkspace && this.userHasWorkspaces) { 278 if (!this.activeWorkspace && this.userHasWorkspaces) {
278 const { lastActiveWorkspace } = this.settings; 279 const { lastActiveWorkspace } = this.settings;
279 if (lastActiveWorkspace) { 280 if (lastActiveWorkspace) {