diff options
author | GitExample <git@example.com> | 2022-02-03 01:43:09 +0100 |
---|---|---|
committer | GitExample <git@example.com> | 2022-02-03 01:43:09 +0100 |
commit | 4c9d8e1b3fc80fa0c23ed78015ab6238bf88dd06 (patch) | |
tree | 73fa3c6f35998263d3ce1eeb392982a704d87f04 /src/app/browser.js | |
parent | a4b11903979fdb4c8b0f6dda8f7343e14c1ebe17 (diff) | |
download | Viper-4c9d8e1b3fc80fa0c23ed78015ab6238bf88dd06.tar.gz Viper-4c9d8e1b3fc80fa0c23ed78015ab6238bf88dd06.zip |
version numbers
These should've been here from the start, and I don't know why I didn't
add them in the start, I'm very dumb.
Diffstat (limited to 'src/app/browser.js')
-rw-r--r-- | src/app/browser.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/browser.js b/src/app/browser.js index f152a6a..357a076 100644 --- a/src/app/browser.js +++ b/src/app/browser.js @@ -26,6 +26,7 @@ var Browser = { image: pkg.icon, author: pkg.owner, download: pkg.download_url, + version: pkg.version_number, description: pkg.description }) } @@ -45,12 +46,17 @@ document.body.addEventListener("keyup", (e) => { function BrowserEl(properties) { properties = { title: "No name", + version: "1.0.0", image: "icons/no-image.png", author: "Unnamed Pilot", description: "No description", ...properties } + if (properties.version[0] != "v") { + properties.version = "v" + properties.version; + } + if (browserEntries.querySelector(".loading")) { browserEntries.innerHTML = ""; } @@ -69,6 +75,7 @@ function BrowserEl(properties) { <div class="title">${properties.title}</div> <div class="description">${properties.description} - ${lang("gui.browser.madeby")} ${properties.author}</div> <button onclick="installFromURL('${properties.download}')">${installstring}</button> + <button class="visual">${properties.version}</button> </div> </div> ` |