diff --git a/manifest.json b/manifest.json index 12cbfb1..73827eb 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "二维码解析", "slug": "qr_code", "description": "对聊天消息中的二维码进行解析", - "version": "1.3.8", + "version": "1.3.9", "icon": "./icon.png", "authors": [ { @@ -16,7 +16,7 @@ "repo": "xh321/LiteLoaderQQNT-QR-Decode", "branch": "master", "release": { - "tag": "1.3.8" + "tag": "1.3.9" } }, "platform": ["win32", "darwin", "linux"], diff --git a/src/main.js b/src/main.js index 662e681..9fbe3e8 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,5 @@ const { ipcMain, dialog, shell, clipboard } = require("electron"); - +const fs = require("fs"); const exec = require("child_process").exec; var defaultBrowser = LiteLoader.api.config.get("qr_decode", { browser: "", @@ -13,6 +13,7 @@ function openUrl(url) { fs.existsSync(defaultBrowser.browser) ) { var cmd = '"' + defaultBrowser.browser + '"' + ' "' + url + '"'; + exec(cmd); } else { shell.openExternal(url);