Skip to content

Commit

Permalink
🎨 统一更新日志地址
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Nov 19, 2022
1 parent 025db33 commit 8e48400
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/app/service/system/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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}`,
});
}
});
}
Expand Down

0 comments on commit 8e48400

Please sign in to comment.