fixed escape order on openFile

This commit is contained in:
antelle 2017-08-15 07:19:30 +02:00
parent 4ab388caf7
commit 36f3d18ef0
1 changed files with 1 additions and 1 deletions

View File

@ -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;