Skip to content

Commit

Permalink
fix: bing词典无数据不显示
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon406 committed Jan 6, 2025
1 parent 50ce178 commit 2be116d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"default_locale": "zh_CN",
"version": "0.11.2",
"version": "0.11.3",
"icons": {
"48": "assets/result48.png",
"128": "assets/icon_128.png"
Expand Down
2 changes: 1 addition & 1 deletion src/content_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ function renderBubble() {
},
null,
)
if (lexResult) {
if (lexResult && lexResult.result && lexResult.result.cdef) {
const { result } = lexResult
bingHtml(result)
} else {
Expand Down

0 comments on commit 2be116d

Please sign in to comment.