mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
JS-6052: Switch localStorage to electron-store
This commit is contained in:
parent
f164ddb053
commit
2c908a1132
5 changed files with 248 additions and 16 deletions
|
@ -9,6 +9,7 @@ const protocol = 'anytype';
|
|||
const remote = require('@electron/remote/main');
|
||||
const { installNativeMessagingHost } = require('./electron/js/lib/installNativeMessagingHost.js');
|
||||
const binPath = fixPathForAsarUnpack(path.join(__dirname, 'dist', `anytypeHelper${is.windows ? '.exe' : ''}`));
|
||||
const Store = require('electron-store');
|
||||
|
||||
// Fix notifications app name
|
||||
if (is.windows) {
|
||||
|
@ -16,6 +17,7 @@ if (is.windows) {
|
|||
};
|
||||
|
||||
storage.setDataPath(app.getPath('userData'));
|
||||
Store.initRenderer();
|
||||
|
||||
const Api = require('./electron/js/api.js');
|
||||
const ConfigManager = require('./electron/js/config.js');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue