File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,6 @@ import { LemmaData } from "./common/define";
9
9
import { logger } from "./common/logger" ;
10
10
import { IsSupported } from "./common/utils" ;
11
11
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
- }
17
12
async function loadJsonFile ( path : PublicPath ) {
18
13
const file_path = browser . runtime . getURL ( path ) ;
19
14
@@ -103,12 +98,6 @@ class BGHelper {
103
98
104
99
export default defineBackground ( async ( ) => {
105
100
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
-
112
101
browser . runtime . onInstalled . addListener ( ( ) => {
113
102
loadRankFile ( ) . then ( ( data ) => {
114
103
storage . setItem < string [ ] > ( "local:rank" , data ) ;
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 " />
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
- < title > Default Popup Title </ title >
6
+ < title > 设置“单词洞察力” </ title >
7
7
<!-- <meta name="manifest.type" content="browser_action" /> -->
8
8
</ head >
9
9
< body >
Original file line number Diff line number Diff line change 2
2
"name" : " insight-word" ,
3
3
"description" : " find the words in web pages" ,
4
4
"private" : true ,
5
- "version" : " 0.5 .0" ,
5
+ "version" : " 0.6 .0" ,
6
6
"type" : " module" ,
7
7
"scripts" : {
8
8
"dev" : " wxt" ,
You can’t perform that action at this time.
0 commit comments