fix start of app with password set
This commit is contained in:
parent
f48b57d077
commit
c355125326
|
@ -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",
|
||||
|
|
|
@ -155,6 +155,7 @@ exports.loadData = readAttachmentData => {
|
|||
}
|
||||
|
||||
const isAlreadyLoaded = exports.hasData(attachment);
|
||||
|
||||
if (isAlreadyLoaded) {
|
||||
return attachment;
|
||||
}
|
||||
|
|
3
main.js
3
main.js
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue