Prettier
This commit is contained in:
@@ -487,7 +487,7 @@ app.on("ready", async () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
console.debug("Ensuring storage is ready");
|
console.debug("Ensuring storage is ready");
|
||||||
if (!await store.prepareSafeStorage(global.mainWindow.webContents.session)) return;
|
if (!(await store.prepareSafeStorage(global.mainWindow.webContents.session))) return;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
app.exit(1);
|
app.exit(1);
|
||||||
|
|||||||
+2
-2
@@ -276,9 +276,9 @@ class Store extends ElectronStore<StoreData> {
|
|||||||
* Prepare the safeStorage backend for use.
|
* Prepare the safeStorage backend for use.
|
||||||
* We don't eagerly import from keytar as that would bring in data for all Element profiles and not just the current one,
|
* We don't eagerly import from keytar as that would bring in data for all Element profiles and not just the current one,
|
||||||
* so we import lazily in getSecret.
|
* so we import lazily in getSecret.
|
||||||
*
|
*
|
||||||
* This will relaunch the app in some cases, in which case it will return false and the caller should abort startup.
|
* This will relaunch the app in some cases, in which case it will return false and the caller should abort startup.
|
||||||
*
|
*
|
||||||
* @param electronSession - The Electron session to use for storage (will be used to clear storage if necessary).
|
* @param electronSession - The Electron session to use for storage (will be used to clear storage if necessary).
|
||||||
* @returns true if safeStorage was initialised successfully or false if the app will be relaunched
|
* @returns true if safeStorage was initialised successfully or false if the app will be relaunched
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user