diff options
-rw-r--r-- | src/stores/ServicesStore.js | 7 |
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'; |
7 | import { debounce, remove } from 'lodash'; | 7 | import { debounce, remove } from 'lodash'; |
8 | import ms from 'ms'; | 8 | import ms from 'ms'; |
9 | import { remote } from 'electron'; | ||
9 | 10 | ||
10 | import Store from './lib/Store'; | 11 | import Store from './lib/Store'; |
11 | import Request from './lib/Request'; | 12 | import Request from './lib/Request'; |
@@ -18,6 +19,8 @@ import { RESTRICTION_TYPES } from '../models/Service'; | |||
18 | 19 | ||
19 | const debug = require('debug')('Franz:ServiceStore'); | 20 | const debug = require('debug')('Franz:ServiceStore'); |
20 | 21 | ||
22 | const { app } = remote; | ||
23 | |||
21 | export default class ServicesStore extends Store { | 24 | export 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 | ||