[connect] utils function

This commit is contained in:
child_duckling 2022-05-01 20:39:07 -07:00
parent 825d1b3bc2
commit 5701aea255
3 changed files with 16 additions and 2 deletions

View file

@ -80,6 +80,7 @@ export class utils {
return Store.cfg.store
}
/**
* Get the store instance
* @returns {Store}
@ -97,6 +98,18 @@ export class utils {
Store.cfg.set(key, value)
}
/**
* Pushes Store to Connect
* @return Function
*/
static pushStoreToConnect(): Function {
return Store.pushToCloud
}
/**
* Gets the browser window
*/
@ -198,4 +211,6 @@ export class utils {
autoUpdater.logger = log
await autoUpdater.checkForUpdatesAndNotify()
}
}