aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r--src/stores/ServicesStore.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 185a6f0ae..934a8a6e0 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -1,4 +1,4 @@
1import { shell } from 'electron'; 1import { shell, remote } from 'electron';
2import { 2import {
3 action, 3 action,
4 reaction, 4 reaction,
@@ -23,6 +23,8 @@ import { KEEP_WS_LOADED_USID } from '../config';
23 23
24const debug = require('debug')('Ferdi:ServiceStore'); 24const debug = require('debug')('Ferdi:ServiceStore');
25 25
26const { app } = remote;
27
26export default class ServicesStore extends Store { 28export default class ServicesStore extends Store {
27 @observable allServicesRequest = new CachedRequest(this.api.services, 'all'); 29 @observable allServicesRequest = new CachedRequest(this.api.services, 'all');
28 30
@@ -818,7 +820,9 @@ export default class ServicesStore extends Store {
818 820
819 if (service.webview) { 821 if (service.webview) {
820 debug('Initialize recipe', service.recipe.id, service.name); 822 debug('Initialize recipe', service.recipe.id, service.name);
821 service.webview.send('initialize-recipe', service.shareWithWebview, service.recipe); 823 service.webview.send('initialize-recipe', Object.assign({
824 franzVersion: app.getVersion(),
825 }, service.shareWithWebview), service.recipe);
822 } 826 }
823 } 827 }
824 828