diff --git a/package.json b/package.json index 08c2d8d..79cc505 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dtalk", - "version": "3.8.7", + "version": "3.8.8", "description": "้’‰้’‰-Linux็‰ˆ", "main": "src/main.js", "scripts": { diff --git a/src/tools/windows.js b/src/tools/windows.js index 78eb84d..2a92cb1 100644 --- a/src/tools/windows.js +++ b/src/tools/windows.js @@ -36,7 +36,7 @@ exports.createMainWindow = function(icon) { win.on('ready-to-show', _ => { win.show() - // win.openDevTools() + win.openDevTools() }) win.webContents.on('dom-ready', ev => { @@ -45,10 +45,11 @@ exports.createMainWindow = function(icon) { const shell = require('electron').shell; - // assuming $ is jQuery $(document).on('click', 'a[href^="http"]', function(event) { - event.preventDefault(); - shell.openExternal(this.href); + if(!this.hasAttribute('nwdirectory')){ + event.preventDefault(); + shell.openExternal(this.href); + } }); localStorage.setItem("isBeepOpen", "true");