mirror of https://github.com/keeweb/keeweb.git
open file sequence fix
This commit is contained in:
parent
07dbbf45bf
commit
6ff54a2ee1
|
@ -36,13 +36,15 @@ app.on('ready', function() {
|
|||
});
|
||||
app.on('open-file', function(e, path) {
|
||||
e.preventDefault();
|
||||
openFile = path.replace(/"/g, '\\"').replace(/\\/g, '\\\\');
|
||||
openFile = path;
|
||||
notifyOpenFile();
|
||||
});
|
||||
|
||||
function notifyOpenFile() {
|
||||
if (ready && openFile && mainWindow) {
|
||||
openFile = openFile.replace(/"/g, '\\"').replace(/\\/g, '\\\\');
|
||||
mainWindow.webContents.executeJavaScript('if (window.launcherOpen) { window.launcherOpen("' + openFile + '"); } ' +
|
||||
' else { window.launcherOpenedFile="' + openFile + '"; }');
|
||||
openFile = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue