From 8e4840027719089f2a1a800f991714d4652fd231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=B8=80=E4=B9=8B?= Date: Sun, 20 Nov 2022 00:42:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E7=BB=9F=E4=B8=80=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=97=A5=E5=BF=97=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/service/system/manager.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/app/service/system/manager.ts b/src/app/service/system/manager.ts index 58a427f7..95caa4be 100644 --- a/src/app/service/system/manager.ts +++ b/src/app/service/system/manager.ts @@ -5,7 +5,6 @@ import { MessageHander } from "@App/app/message/message"; import { ScriptDAO } from "@App/app/repo/scripts"; import { SystemConfig } from "@App/pkg/config/config"; import { prepareScriptByCode } from "@App/pkg/utils/script"; -import semver from "semver"; import Manager from "../manager"; import ScriptManager from "../script/manager"; @@ -56,16 +55,9 @@ export class SystemManager extends Manager { if (details.reason === "install") { chrome.tabs.create({ url: "https://docs.scriptcat.org/" }); } else if (details.reason === "update") { - const version = semver.parse(ExtVersion); - if (version && !version.prerelease.length) { - chrome.tabs.create({ - url: "https://docs.scriptcat.org/docs/change/", - }); - } else { - chrome.tabs.create({ - url: "https://docs.scriptcat.org/docs/change/pre-release/", - }); - } + chrome.tabs.create({ + url: `https://docs.scriptcat.org/docs/change/#${ExtVersion}`, + }); } }); }