diff options
author | papush | 2021-08-29 14:36:42 +0200 |
---|---|---|
committer | papush | 2021-08-29 14:36:42 +0200 |
commit | e17cb4e48ae0d691f92d78ca01efc98213eb9b77 (patch) | |
tree | ba4dea1af1f73448f3d814c8de9c7d697021846f /chrome/js/browserOverlay.js | |
parent | 35050a40d1336f162041c328f4f589fe1adebf0e (diff) |
add a tooltip and fix the labels
Diffstat (limited to 'chrome/js/browserOverlay.js')
-rw-r--r-- | chrome/js/browserOverlay.js | 8 |
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); |