electron-store
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -32,3 +32,9 @@ 'use strict'; | ||
if (ipcRenderer) { | ||
({defaultCwd, appVersion} = ipcRenderer.sendSync('electron-store-get-data')); | ||
const appData = ipcRenderer.sendSync('electron-store-get-data'); | ||
if (!appData) { | ||
throw new Error('Electron Store: You need to call `.initRenderer()` from the main process.'); | ||
} | ||
({defaultCwd, appVersion} = appData); | ||
} else if (ipcMain && app) { | ||
@@ -35,0 +41,0 @@ ({defaultCwd, appVersion} = initDataListener()); |
{ | ||
"name": "electron-store", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
18574
110