Add version to site extension button

This commit is contained in:
hensm
2019-05-21 16:29:31 +01:00
parent 608985a96b
commit 463e49c7a8
2 changed files with 2 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ function onResponse (res) {
switch (asset.name.match(/.*\.(.*)$/).pop()) {
case "xpi":
downloadExtBtn.href = asset.browser_download_url;
downloadExtBtn.dataset.version = res.tag_name;
downloadExtBtn.removeAttribute("disabled");
downloadExtBtn.removeAttribute("title");
break;