Skip to content

Commit

Permalink
added page action back hoping it will work on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Cristian Petcu committed May 27, 2017
1 parent eeac5f5 commit d6fbee8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "__MSG_appName__",
"version": "1.2.3",
"version": "1.2.4",
"homepage_url": "https://github.com/andreicristianpetcu/google_translate_this",
"manifest_version": 2,
"description": "__MSG_appDescription__",
Expand Down
20 changes: 10 additions & 10 deletions scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ browser.contextMenus.create({
});
browser.pageAction.onClicked.addListener(translateCurrentPage);

//browser.tabs.query({}).then((tabs) => {
// var tab;
// for (tab of tabs) {
// showPageActionOnTab(tab);
// }
//});
//
//browser.tabs.onUpdated.addListener((id, changeInfo, tab) => {
// showPageActionOnTab(tab);
//});
browser.tabs.query({}).then((tabs) => {
var tab;
for (tab of tabs) {
showPageActionOnTab(tab);
}
});

browser.tabs.onUpdated.addListener((id, changeInfo, tab) => {
showPageActionOnTab(tab);
});
4 changes: 3 additions & 1 deletion updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
{ "version": "1.2.2",
"update_link": "https://github.com/andreicristianpetcu/google_translate_this/releases/download/v1.2.2/google_translate_this_page-1.2.2-an.fx.xpi" },
{ "version": "1.2.3",
"update_link": "https://github.com/andreicristianpetcu/google_translate_this/releases/download/v1.2.3/google_translate_this_page-1.2.3-an.fx.xpi" }
"update_link": "https://github.com/andreicristianpetcu/google_translate_this/releases/download/v1.2.3/google_translate_this_page-1.2.3-an.fx.xpi" },
{ "version": "1.2.4",
"update_link": "https://github.com/andreicristianpetcu/google_translate_this/releases/download/v1.2.4/google_translate_this_page-1.2.4-an.fx.xpi" }
]
}
}
Expand Down

0 comments on commit d6fbee8

Please sign in to comment.