aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stores/ServicesStore.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 70b775503..65e68e4d7 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -6,6 +6,7 @@ import {
6} from 'mobx'; 6} from 'mobx';
7import { debounce, remove } from 'lodash'; 7import { debounce, remove } from 'lodash';
8import ms from 'ms'; 8import ms from 'ms';
9import { remote } from 'electron';
9 10
10import Store from './lib/Store'; 11import Store from './lib/Store';
11import Request from './lib/Request'; 12import Request from './lib/Request';
@@ -18,6 +19,8 @@ import { RESTRICTION_TYPES } from '../models/Service';
18 19
19const debug = require('debug')('Franz:ServiceStore'); 20const debug = require('debug')('Franz:ServiceStore');
20 21
22const { app } = remote;
23
21export default class ServicesStore extends Store { 24export default class ServicesStore extends Store {
22 @observable allServicesRequest = new CachedRequest(this.api.services, 'all'); 25 @observable allServicesRequest = new CachedRequest(this.api.services, 'all');
23 26
@@ -728,7 +731,9 @@ export default class ServicesStore extends Store {
728 731
729 if (service.webview) { 732 if (service.webview) {
730 debug('Initialize recipe', service.recipe.id, service.name); 733 debug('Initialize recipe', service.recipe.id, service.name);
731 service.webview.send('initialize-recipe', service.shareWithWebview, service.recipe); 734 service.webview.send('initialize-recipe', Object.assign({
735 franzVersion: app.getVersion(),
736 }, service.shareWithWebview), service.recipe);
732 } 737 }
733 } 738 }
734 739