So I have a bool variable stored in storeVariables called storageEncrypted. When I check/get storageEncrypted it returns undefined even though it is defined after running a second instance. Any reason for this?
// Force Single Instance Application
const gotTheLock = app.requestSingleInstanceLock()
if (gotTheLock) {
app.on('second-instance', (e, argv) => {
// Someone tried to run a second instance, we should focus our window.
// Protocol handler for win32
// argv: An array of the second instance’s (command line / deep linked) arguments
if (process.platform == 'win32') {
// Keep only command line / deep linked arguments
deeplinkingUrl = argv.slice(1);
}
if (deeplinkingUrl.length > 0) {
mainWindow.webContents.send('url', deeplinkingUrl);
}
logEverywhere('app.makeSingleInstance# ' + deeplinkingUrl);
if (mainWindow) {
if (mainWindow.isMinimized()) {
mainWindow.restore();
mainWindow.focus();
}
}
logEverywhere("storageEncrypted: " + storeVariables.get("storageEncrypted"));
})
} else {
app.quit();
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too