aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview')
-rw-r--r--src/webview/contextMenu.js2
-rw-r--r--src/webview/recipe.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/contextMenu.js b/src/webview/contextMenu.js
index bd099987d..a76c03e5a 100644
--- a/src/webview/contextMenu.js
+++ b/src/webview/contextMenu.js
@@ -277,6 +277,6 @@ export default function contextMenu(spellcheckProvider, isSpellcheckEnabled, get
277 ), 277 ),
278 ); 278 );
279 279
280 menu.popup(remote.getCurrentWindow()); 280 menu.popup();
281 }); 281 });
282} 282}
diff --git a/src/webview/recipe.js b/src/webview/recipe.js
index 9aa89ce01..c718b348e 100644
--- a/src/webview/recipe.js
+++ b/src/webview/recipe.js
@@ -73,7 +73,7 @@ class RecipeController {
73 require(modulePath)(new RecipeWebview(), {...config, recipe,}); 73 require(modulePath)(new RecipeWebview(), {...config, recipe,});
74 debug('Initialize Recipe', config, recipe); 74 debug('Initialize Recipe', config, recipe);
75 75
76 this.settings.service = config; 76 this.settings.service = Object.assign(config, { recipe });
77 } catch (err) { 77 } catch (err) {
78 console.error('Recipe initialization failed', err); 78 console.error('Recipe initialization failed', err);
79 } 79 }