aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-13 08:18:13 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-13 07:32:56 +0000
commit5130935ad52c149837fd45e936c943223d13dfc4 (patch)
tree442283749984f39efba450981c22716c84e613a3 /src/stores/ServicesStore.js
parentrefactor: Use destructured 'import' (diff)
downloadferdium-app-5130935ad52c149837fd45e936c943223d13dfc4.tar.gz
ferdium-app-5130935ad52c149837fd45e936c943223d13dfc4.tar.zst
ferdium-app-5130935ad52c149837fd45e936c943223d13dfc4.zip
chore: Refactoring to reuse already defined constants
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r--src/stores/ServicesStore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 4ccb995ae..2ec6a0a68 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -2,7 +2,6 @@ import { shell } from 'electron';
2import { action, reaction, computed, observable } from 'mobx'; 2import { action, reaction, computed, observable } from 'mobx';
3import { debounce, remove } from 'lodash'; 3import { debounce, remove } from 'lodash';
4import ms from 'ms'; 4import ms from 'ms';
5import { app } from '@electron/remote';
6import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; 5import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra';
7import { join } from 'path'; 6import { join } from 'path';
8 7
@@ -18,6 +17,7 @@ import {
18import { workspaceStore } from '../features/workspaces'; 17import { workspaceStore } from '../features/workspaces';
19import { KEEP_WS_LOADED_USID } from '../config'; 18import { KEEP_WS_LOADED_USID } from '../config';
20import { SPELLCHECKER_LOCALES } from '../i18n/languages'; 19import { SPELLCHECKER_LOCALES } from '../i18n/languages';
20import { ferdiVersion } from '../environment';
21 21
22const debug = require('debug')('Ferdi:ServiceStore'); 22const debug = require('debug')('Ferdi:ServiceStore');
23 23
@@ -1149,7 +1149,7 @@ export default class ServicesStore extends Store {
1149 'initialize-recipe', 1149 'initialize-recipe',
1150 { 1150 {
1151 ...shareWithWebview, 1151 ...shareWithWebview,
1152 franzVersion: app.getVersion(), 1152 franzVersion: ferdiVersion,
1153 }, 1153 },
1154 service.recipe, 1154 service.recipe,
1155 ); 1155 );