Skip to content

Commit

Permalink
🚧 Add new logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
tolerious committed Sep 8, 2024
1 parent 396e0c0 commit ca34f23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/general/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ function listenEventFromFloatingPanelEvent() {
case "save-word":
goThroughDomAndGenerateCustomElement(await getWordList());
break;
case "go-through-content":
goThroughDomAndGenerateCustomElement(await getWordList());
break;
default:
break;
}
Expand Down
2 changes: 2 additions & 0 deletions src/webPage/translationFloatingPanel/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ function listenEventFromGeneralScript() {
console.log('floating panel group id:', groupId.value);
break;
case 'search-word':
sendMessageToGeneralScript({ type: 'go-through-content' });
dic.value = [];
currentWord.value = data.word;
if (data.word.trim().split(' ').length > 1) {
Expand Down

0 comments on commit ca34f23

Please sign in to comment.