Skip to content

Commit

Permalink
bug fix: can't test GoogleTranslate voices from options page
Browse files Browse the repository at this point in the history
  • Loading branch information
ken107 committed Aug 24, 2021
1 parent 6489c40 commit 8dae926
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ function handleError(err) {
if (granted) bgPageInvoke("authWavenet");
})
break;
case "#auth-gtranslate":
if (getBrowser() == "firefox") {
createTab(brapi.runtime.getURL("firefox-perm.html") + "?perms=" + encodeURIComponent(JSON.stringify(config.gtranslatePerms)) + "&then=auth-gtranslate")
.then(function() {
window.close()
})
}
break;
case "#user-gesture":
getBackgroundPage()
.then(callMethod("userGestureActivate"))
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "__MSG_extension_name__",
"short_name": "__MSG_extension_short_name__",
"description": "__MSG_extension_description__",
"version": "1.45.0",
"version": "1.45.1",
"default_locale": "en",

"browser_action": {
Expand Down

0 comments on commit 8dae926

Please sign in to comment.