From 463e49c7a830a5d7172a610c8b16d947e826320e Mon Sep 17 00:00:00 2001 From: hensm Date: Tue, 21 May 2019 16:29:31 +0100 Subject: [PATCH] Add version to site extension button --- docs/index.css | 1 + docs/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/index.css b/docs/index.css index 5e80a34..65097de 100755 --- a/docs/index.css +++ b/docs/index.css @@ -126,6 +126,7 @@ body { margin-bottom: 0.5em; } +.download__ext[data-version]::after, .download__app[data-version]::after { color: var(--text-color-secondary); content: attr(data-version); diff --git a/docs/index.js b/docs/index.js index 3d5d470..565960f 100644 --- a/docs/index.js +++ b/docs/index.js @@ -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;