fixed escape order on openFile

This commit is contained in:
antelle 2017-08-15 07:19:30 +02:00
parent 0e45d80a0a
commit d312f22b5a
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,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;