fix start of app with password set

This commit is contained in:
audric 2021-08-19 17:54:33 +10:00
parent f48b57d077
commit c355125326
3 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,7 @@
"concat": {
"app": [
"node_modules/jquery/dist/jquery.js",
"node_modules/bytebuffer/dist/bytebuffer.min.js",
"node_modules/long/dist/long.js",
"components/protobuf/**/*.js",
"node_modules/mustache/mustache.js",

View File

@ -155,6 +155,7 @@ exports.loadData = readAttachmentData => {
}
const isAlreadyLoaded = exports.hasData(attachment);
if (isAlreadyLoaded) {
return attachment;
}

View File

@ -466,7 +466,10 @@ function showPasswordWindow() {
autoHideMenuBar: false,
webPreferences: {
nodeIntegration: false,
enableRemoteModule: true,
nodeIntegrationInWorker: false,
contextIsolation: false,
// sandbox: true,
preload: path.join(__dirname, 'password_preload.js'),
nativeWindowOpen: true,