From 702235643f3245d196e13b85600aa3db04df45c6 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 13 Aug 2020 15:43:26 +0900 Subject: [PATCH] Update uriloader.js --- uriloader.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/uriloader.js b/uriloader.js index 22b61ae..e326b8e 100644 --- a/uriloader.js +++ b/uriloader.js @@ -6,6 +6,7 @@ var SHELL = require("lib/shell"); var URI = require("lib/uri"); +var WINLIBS = require("lib/winlibs"); exports.main = function(args) { var uri = args[0]; @@ -29,8 +30,11 @@ exports.main = function(args) { cmd.push("calc.exe"); break; case "msie": - cmd.push("%PROGRAMFILES%\\Internet Explorer\\iexplore.exe"); - cmd.push("https://github.com/gnh1201/welsonjs"); + //cmd.push("%PROGRAMFILES%\\Internet Explorer\\iexplore.exe"); + //cmd.push("https://github.com/gnh1201/welsonjs"); + WINLIBS.loadLibrary("url").call("FileProtocolHandler", [ + "https://github.com/gnh1201/welsonjs" + ]); break; case "msexcel": cmd.push("%PROGRAMFILES%\\Microsoft Office\\Office15\\EXCEL.EXE");