Skip to content

Commit

Permalink
1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MUKAPP committed May 22, 2024
1 parent 9de8589 commit a5ddc00
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "DeepL",
"slug": "deepl_plugin",
"description": "将 DeepL 翻译接入你的 QQNT",
"version": "1.2.3",
"version": "1.2.4",
"thumb": "./res/translate_FILL0_wght300_GRAD0_opsz24.svg",
"icon": "./res/icon.webp",
"authors": [
Expand Down
3 changes: 0 additions & 3 deletions src/preload.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Electron 主进程 与 渲染进程 交互的桥梁
const { contextBridge, ipcRenderer } = require("electron");

// (alias) function query(params: RequestParams, config?: Config): Promise<ResponseParams>
// import query

// 在window对象下导出只读对象
contextBridge.exposeInMainWorld("deepl_plugin", {
getSettings: () => ipcRenderer.invoke(
Expand Down
2 changes: 1 addition & 1 deletion src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ export const onSettingWindowCreated = async view => {
.then(({ url, content }) => {
const versionMatch = content.match(/\/releases\/tag\/v(\d+\.\d+\.\d+)/);
const urlMatch = content.match(/https:\/\/github\.com\/[\w-]+\/[\w-]+\/releases\/tag\/v\d+\.\d+\.\d+/);
log("urlMatch",urlMatch[0]);
log("urlMatch", urlMatch[0]);
if (versionMatch) {
const new_version = versionMatch[1];
log("[版本]", "最新版本", new_version);
Expand Down

0 comments on commit a5ddc00

Please sign in to comment.