mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Add version to site extension button
This commit is contained in:
@@ -126,6 +126,7 @@ body {
|
|||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.download__ext[data-version]::after,
|
||||||
.download__app[data-version]::after {
|
.download__app[data-version]::after {
|
||||||
color: var(--text-color-secondary);
|
color: var(--text-color-secondary);
|
||||||
content: attr(data-version);
|
content: attr(data-version);
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ function onResponse (res) {
|
|||||||
switch (asset.name.match(/.*\.(.*)$/).pop()) {
|
switch (asset.name.match(/.*\.(.*)$/).pop()) {
|
||||||
case "xpi":
|
case "xpi":
|
||||||
downloadExtBtn.href = asset.browser_download_url;
|
downloadExtBtn.href = asset.browser_download_url;
|
||||||
|
downloadExtBtn.dataset.version = res.tag_name;
|
||||||
downloadExtBtn.removeAttribute("disabled");
|
downloadExtBtn.removeAttribute("disabled");
|
||||||
downloadExtBtn.removeAttribute("title");
|
downloadExtBtn.removeAttribute("title");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user