aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 93a7deea9..68796b692 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -18,7 +18,7 @@ import Store from './lib/Store';
18import Request from './lib/Request'; 18import Request from './lib/Request';
19import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; 19import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config';
20import { isMac, isWindows, electronVersion, osRelease } from '../environment'; 20import { isMac, isWindows, electronVersion, osRelease } from '../environment';
21import { ferdiVersion, userDataPath, ferdiLocale } from '../environment-remote'; 21import { ferdiumVersion, userDataPath, ferdiumLocale } from '../environment-remote';
22import { generatedTranslations } from '../i18n/translations'; 22import { generatedTranslations } from '../i18n/translations';
23import { getLocale } from '../helpers/i18n-helpers'; 23import { getLocale } from '../helpers/i18n-helpers';
24 24
@@ -29,13 +29,13 @@ import {
29import { openExternalUrl } from '../helpers/url-helpers'; 29import { openExternalUrl } from '../helpers/url-helpers';
30import { sleep } from '../helpers/async-helpers'; 30import { sleep } from '../helpers/async-helpers';
31 31
32const debug = require('debug')('Ferdi:AppStore'); 32const debug = require('debug')('Ferdium:AppStore');
33 33
34const mainWindow = getCurrentWindow(); 34const mainWindow = getCurrentWindow();
35 35
36const executablePath = isMac ? remoteProcess.execPath : process.execPath; 36const executablePath = isMac ? remoteProcess.execPath : process.execPath;
37const autoLauncher = new AutoLaunch({ 37const autoLauncher = new AutoLaunch({
38 name: 'Ferdi', 38 name: 'Ferdium',
39 path: executablePath, 39 path: executablePath,
40}); 40});
41 41
@@ -74,7 +74,7 @@ export default class AppStore extends Store {
74 74
75 @observable updateStatus = ''; 75 @observable updateStatus = '';
76 76
77 @observable locale = ferdiLocale; 77 @observable locale = ferdiumLocale;
78 78
79 @observable isSystemMuteOverridden = false; 79 @observable isSystemMuteOverridden = false;
80 80
@@ -139,7 +139,7 @@ export default class AppStore extends Store {
139 139
140 this.isOnline = navigator.onLine; 140 this.isOnline = navigator.onLine;
141 141
142 // Check if Ferdi should launch on start 142 // Check if Ferdium should launch on start
143 // Needs to be delayed a bit 143 // Needs to be delayed a bit
144 this._autoStart(); 144 this._autoStart();
145 145
@@ -193,7 +193,7 @@ export default class AppStore extends Store {
193 } 193 }
194 }); 194 });
195 195
196 // Handle deep linking (ferdi://) 196 // Handle deep linking (ferdium://)
197 ipcRenderer.on('navigateFromDeepLink', (event, data) => { 197 ipcRenderer.on('navigateFromDeepLink', (event, data) => {
198 debug('Navigate from deep link', data); 198 debug('Navigate from deep link', data);
199 let { url } = data; 199 let { url } = data;
@@ -252,7 +252,7 @@ export default class AppStore extends Store {
252 if (isMac && !localStorage.getItem(CATALINA_NOTIFICATION_HACK_KEY)) { 252 if (isMac && !localStorage.getItem(CATALINA_NOTIFICATION_HACK_KEY)) {
253 debug('Triggering macOS Catalina notification permission trigger'); 253 debug('Triggering macOS Catalina notification permission trigger');
254 // eslint-disable-next-line no-new 254 // eslint-disable-next-line no-new
255 new window.Notification('Welcome to Ferdi 5', { 255 new window.Notification('Welcome to Ferdium 5', {
256 body: 'Have a wonderful day & happy messaging.', 256 body: 'Have a wonderful day & happy messaging.',
257 }); 257 });
258 258
@@ -274,8 +274,8 @@ export default class AppStore extends Store {
274 release: osRelease, 274 release: osRelease,
275 screens: screen.getAllDisplays(), 275 screens: screen.getAllDisplays(),
276 }, 276 },
277 ferdi: { 277 ferdium: {
278 version: ferdiVersion, 278 version: ferdiumVersion,
279 electron: electronVersion, 279 electron: electronVersion,
280 installedRecipes: this.stores.recipes.all.map(recipe => ({ 280 installedRecipes: this.stores.recipes.all.map(recipe => ({
281 id: recipe.id, 281 id: recipe.id,
@@ -492,7 +492,7 @@ export default class AppStore extends Store {
492 492
493 _getDefaultLocale() { 493 _getDefaultLocale() {
494 return getLocale({ 494 return getLocale({
495 locale: ferdiLocale, 495 locale: ferdiumLocale,
496 locales, 496 locales,
497 fallbackLocale: DEFAULT_APP_SETTINGS.fallbackLocale, 497 fallbackLocale: DEFAULT_APP_SETTINGS.fallbackLocale,
498 }); 498 });