mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-18 17:52:17 +00:00
protocol.registerFileProtocol, 如果存在, 则不kill port
This commit is contained in:
3
main.js
3
main.js
@@ -45,7 +45,8 @@ app.on('ready', openIt);
|
|||||||
|
|
||||||
function killPort(callback) {
|
function killPort(callback) {
|
||||||
var protocol = require('protocol');
|
var protocol = require('protocol');
|
||||||
if (!protocol.registerFileProtocol) {
|
if (protocol.registerFileProtocol) {
|
||||||
|
callback();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var child_process = require('child_process');
|
var child_process = require('child_process');
|
||||||
|
Reference in New Issue
Block a user