mirror of https://github.com/keeweb/keeweb
fixed escape order on openFile
parent
4ab388caf7
commit
36f3d18ef0
|
@ -312,7 +312,7 @@ function onContextMenu(e, props) {
|
|||
|
||||
function notifyOpenFile() {
|
||||
if (ready && openFile && mainWindow) {
|
||||
openFile = openFile.replace(/"/g, '\\"').replace(/\\/g, '\\\\');
|
||||
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