1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

new menuDataviewFilter

This commit is contained in:
Andrew Simachev 2021-04-22 15:43:04 +03:00
parent a9edf363c8
commit 62b737be94
8 changed files with 45 additions and 34 deletions

View file

@ -23,6 +23,7 @@ const TIMEOUT_UPDATE = 600 * 1000;
const MIN_WIDTH = 752;
const MIN_HEIGHT = 480;
const KEYTAR_SERVICE = 'Anytype';
const CONFIG_NAME = 'devconfig';
let env = {};
try { env = JSON.parse(fs.readFileSync(envPath)); } catch (e) {};
@ -331,7 +332,7 @@ function createWindow () {
};
});
storage.get('devconfig', (error, data) => {
storage.get(CONFIG_NAME, (error, data) => {
config = data || {};
config.channel = String(config.channel || defaultChannel);
@ -571,7 +572,7 @@ function setChannel (channel) {
function setConfig (obj, callBack) {
config = Object.assign(config, obj);
storage.set('config', config, (error) => {
storage.set(CONFIG_NAME, config, (error) => {
send('config', config);
if (callBack) {
callBack(error);