Skip to content

Commit

Permalink
fix copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ttop32 committed Dec 29, 2023
1 parent 1938b6f commit 33b71b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions doc/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Mouseover Translate Any Language At Once
English, Russian, Japanese, Chinese and so on

# Change Log
- 0.1.105
- fix copy (request by J-Corleone)
- 0.1.104
- fix shadow dom performance
- 0.1.103
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"message": "Title "
},
"appName": {
"message": "Переводчик контекста мышью"
"message": "Переводчик контекста мышью for productivity"
},
"appDesc": {
"message": "Переводчик для подсказки для мыши переводчик перевод текста MouseOver с помощью Google Translate"
Expand Down
7 changes: 3 additions & 4 deletions src/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,10 +957,9 @@ export async function sendMessage(message) {
return {};
}

export function sendMessageToCurrentTab(message) {
browser.tabs.query({ active: true, currentWindow: true }, (tabs) => {
browser.tabs.sendMessage(tabs[0].id, message);
});
export async function sendMessageToCurrentTab(message) {
var tabs = await browser.tabs.query({ active: true, currentWindow: true });
browser.tabs.sendMessage(tabs?.[0]?.id, message);
}

export function addMessageListener(type, handler) {
Expand Down

0 comments on commit 33b71b7

Please sign in to comment.