Skip to content

Commit 702b074

Browse files
committed
v0.6.0
1 parent c1b8abc commit 702b074

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

entrypoints/background.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ import { LemmaData } from "./common/define";
99
import { logger } from "./common/logger";
1010
import { IsSupported } from "./common/utils";
1111

12-
async function getMeaning(word: string) {
13-
// let response = await fetch("https://cn.bing.com/dict/search?q=" + word);
14-
// let data = await response.text();
15-
return `getMeaning of ${word}`;
16-
}
1712
async function loadJsonFile(path: PublicPath) {
1813
const file_path = browser.runtime.getURL(path);
1914

@@ -103,12 +98,6 @@ class BGHelper {
10398

10499
export default defineBackground(async () => {
105100
logger.log("Hello background!", { id: browser.runtime.id });
106-
browser.contextMenus.create({
107-
id: "addWords",
108-
title: 'Send "%s" to background',
109-
contexts: ["all"],
110-
});
111-
112101
browser.runtime.onInstalled.addListener(() => {
113102
loadRankFile().then((data) => {
114103
storage.setItem<string[]>("local:rank", data);

entrypoints/popup/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Default Popup Title</title>
6+
<title>设置“单词洞察力”</title>
77
<!-- <meta name="manifest.type" content="browser_action" /> -->
88
</head>
99
<body>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "insight-word",
33
"description": "find the words in web pages",
44
"private": true,
5-
"version": "0.5.0",
5+
"version": "0.6.0",
66
"type": "module",
77
"scripts": {
88
"dev": "wxt",

0 commit comments

Comments
 (0)