aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-18 14:30:16 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-18 14:30:16 +0200
commited071ba4e298d19c69c7994194f118cf3b75b277 (patch)
tree7e182c8c43d659fee212eed8f919c0d91337b78d /src/stores/ServicesStore.js
parentremove flow tag (diff)
downloadferdium-app-ed071ba4e298d19c69c7994194f118cf3b75b277.tar.gz
ferdium-app-ed071ba4e298d19c69c7994194f118cf3b75b277.tar.zst
ferdium-app-ed071ba4e298d19c69c7994194f118cf3b75b277.zip
share app version with webview
Diffstat (limited to 'src/stores/ServicesStore.js')
-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