mirror of
https://github.com/vector-im/element-web.git
synced 2026-04-30 18:01:08 +02:00
Prettier
This commit is contained in:
parent
2e039f4bab
commit
86f6136257
@ -487,7 +487,7 @@ app.on("ready", async () => {
|
||||
|
||||
try {
|
||||
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) {
|
||||
console.error(e);
|
||||
app.exit(1);
|
||||
|
||||
@ -276,9 +276,9 @@ class Store extends ElectronStore<StoreData> {
|
||||
* 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,
|
||||
* 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.
|
||||
*
|
||||
*
|
||||
* @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
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user