aboutsummaryrefslogtreecommitdiff
path: root/chrome/js
diff options
context:
space:
mode:
authorpapush2021-08-29 14:36:42 +0200
committerpapush2021-08-29 14:36:42 +0200
commite17cb4e48ae0d691f92d78ca01efc98213eb9b77 (patch)
treeba4dea1af1f73448f3d814c8de9c7d697021846f /chrome/js
parent35050a40d1336f162041c328f4f589fe1adebf0e (diff)
add a tooltip and fix the labels
Diffstat (limited to 'chrome/js')
-rw-r--r--chrome/js/browserOverlay.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/js/browserOverlay.js b/chrome/js/browserOverlay.js
index 2767d7b..d833ccf 100644
--- a/chrome/js/browserOverlay.js
+++ b/chrome/js/browserOverlay.js
@@ -93,8 +93,14 @@ var RedirectorOverlay = {
} else if (event.button == RIGHT) {
this.openSettings();
}
- }
+ },
+ updateTooltip: function(event) {
+ AddonManager.getAddonByID("url-rewriter@papush", (addon) => {
+ let label = event.target.getElementsByClassName("redirector-tooltip-version")[0];
+ label.setAttribute("value", "URL Rewriter " + addon.version);
+ });
+ }
};
window.addEventListener("load", function(event) { RedirectorOverlay.onLoad(event); }, false);
window.addEventListener("unload", function(event) { RedirectorOverlay.onUnload(event); }, false);