aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-03-28 11:06:02 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-03-28 11:06:02 +0200
commita01ec7fe971ef863caae4c4a70df2d015f1dd62e (patch)
tree418926c79fdfb03d20412b7649cffe976d5dcc7e /src
parentmini cleanup (diff)
downloadferdium-app-a01ec7fe971ef863caae4c4a70df2d015f1dd62e.tar.gz
ferdium-app-a01ec7fe971ef863caae4c4a70df2d015f1dd62e.tar.zst
ferdium-app-a01ec7fe971ef863caae4c4a70df2d015f1dd62e.zip
minor cleanup
Diffstat (limited to 'src')
-rw-r--r--src/electron/ipc-api/settings.js4
-rw-r--r--src/stores/SettingsStore.js5
2 files changed, 0 insertions, 9 deletions
diff --git a/src/electron/ipc-api/settings.js b/src/electron/ipc-api/settings.js
index 00bdc0113..3eab68a91 100644
--- a/src/electron/ipc-api/settings.js
+++ b/src/electron/ipc-api/settings.js
@@ -1,10 +1,6 @@
1import { ipcMain } from 'electron'; 1import { ipcMain } from 'electron';
2 2
3export default (params) => { 3export default (params) => {
4 ipcMain.on('settings', (event, args) => {
5 params.settings.set(args);
6 });
7
8 ipcMain.on('getAppSettings', () => { 4 ipcMain.on('getAppSettings', () => {
9 params.mainWindow.webContents.send('appSettings', params.settings.all); 5 params.mainWindow.webContents.send('appSettings', params.settings.all);
10 }); 6 });
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js
index 075cb6482..fe0ce2be9 100644
--- a/src/stores/SettingsStore.js
+++ b/src/stores/SettingsStore.js
@@ -65,11 +65,6 @@ export default class SettingsStore extends Store {
65 } 65 }
66 } 66 }
67 67
68 // Reactions
69 _shareSettingsWithMainProcess() {
70 ipcRenderer.send('settings', this.all);
71 }
72
73 // Helper 68 // Helper
74 _migrate() { 69 _migrate() {
75 const legacySettings = localStorage.getItem('app'); 70 const legacySettings = localStorage.getItem('app');