From 3d3da50c6a5eeeb6e6b809568b37341654ae4337 Mon Sep 17 00:00:00 2001 From: life Date: Sun, 15 Nov 2015 12:10:31 +0800 Subject: [PATCH] =?UTF-8?q?protocol.registerFileProtocol,=20=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E5=AD=98=E5=9C=A8,=20=E5=88=99=E4=B8=8Dkill=20port?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 0bccba60..d7ecb165 100644 --- a/main.js +++ b/main.js @@ -45,7 +45,8 @@ app.on('ready', openIt); function killPort(callback) { var protocol = require('protocol'); - if (!protocol.registerFileProtocol) { + if (protocol.registerFileProtocol) { + callback(); return; } var child_process = require('child_process');