diff options
Diffstat (limited to 'src/stores/RecipesStore.js')
-rw-r--r-- | src/stores/RecipesStore.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/stores/RecipesStore.js b/src/stores/RecipesStore.js index 0a3db2488..d39b87401 100644 --- a/src/stores/RecipesStore.js +++ b/src/stores/RecipesStore.js | |||
@@ -8,7 +8,8 @@ import Request from './lib/Request'; | |||
8 | import { matchRoute } from '../helpers/routing-helpers'; | 8 | import { matchRoute } from '../helpers/routing-helpers'; |
9 | import { asarRecipesPath } from '../helpers/asar-helpers'; | 9 | import { asarRecipesPath } from '../helpers/asar-helpers'; |
10 | 10 | ||
11 | const debug = require('debug')('Ferdium:RecipeStore'); | 11 | // TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed |
12 | // const debug = require('debug')('Ferdium:RecipeStore'); | ||
12 | 13 | ||
13 | export default class RecipesStore extends Store { | 14 | export default class RecipesStore extends Store { |
14 | @observable allRecipesRequest = new CachedRequest(this.api.recipes, 'all'); | 15 | @observable allRecipesRequest = new CachedRequest(this.api.recipes, 'all'); |
@@ -47,7 +48,7 @@ export default class RecipesStore extends Store { | |||
47 | return activeRecipe; | 48 | return activeRecipe; |
48 | } | 49 | } |
49 | 50 | ||
50 | debug(`Recipe ${match.id} not installed`); | 51 | console.log(`Recipe ${match.id} not installed`); |
51 | } | 52 | } |
52 | 53 | ||
53 | return null; | 54 | return null; |
@@ -78,7 +79,7 @@ export default class RecipesStore extends Store { | |||
78 | const recipes = {}; | 79 | const recipes = {}; |
79 | 80 | ||
80 | // Hackfix, reference this.all to fetch services | 81 | // Hackfix, reference this.all to fetch services |
81 | debug(`Check Recipe updates for ${this.all.map(recipe => recipe.id)}`); | 82 | console.log(`Check Recipe updates for ${this.all.map(recipe => recipe.id)}`); |
82 | 83 | ||
83 | for (const r of recipeIds) { | 84 | for (const r of recipeIds) { |
84 | const recipe = this.one(r); | 85 | const recipe = this.one(r); |
@@ -107,7 +108,7 @@ export default class RecipesStore extends Store { | |||
107 | } | 108 | } |
108 | 109 | ||
109 | const updates = [...remoteUpdates, ...localUpdates]; | 110 | const updates = [...remoteUpdates, ...localUpdates]; |
110 | debug( | 111 | console.log( |
111 | 'Got update information (local, remote):', | 112 | 'Got update information (local, remote):', |
112 | localUpdates, | 113 | localUpdates, |
113 | remoteUpdates, | 114 | remoteUpdates, |
@@ -145,7 +146,7 @@ export default class RecipesStore extends Store { | |||
145 | 146 | ||
146 | if (!this.stores.recipes.isInstalled(recipeId)) { | 147 | if (!this.stores.recipes.isInstalled(recipeId)) { |
147 | router.push('/settings/recipes'); | 148 | router.push('/settings/recipes'); |
148 | debug(`Recipe ${recipeId} is not installed, trying to install it`); | 149 | console.log(`Recipe ${recipeId} is not installed, trying to install it`); |
149 | 150 | ||
150 | const recipe = await this.installRecipeRequest.execute(recipeId) | 151 | const recipe = await this.installRecipeRequest.execute(recipeId) |
151 | ._promise; | 152 | ._promise; |