diff options
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> ` |