aboutsummaryrefslogtreecommitdiff
path: root/src/app/browser.js
diff options
context:
space:
mode:
authorGitExample <git@example.com>2022-02-03 01:09:37 +0100
committerGitExample <git@example.com>2022-02-03 01:09:37 +0100
commitd3228ae7fad117a8313731107f572ba4879569b6 (patch)
treece67a33514eccb055580f15d3b7162c5261efed3 /src/app/browser.js
parent396c1f3c9499a2bb50b2b5f3760cc58acfe9b87f (diff)
downloadViper-d3228ae7fad117a8313731107f572ba4879569b6.tar.gz
Viper-d3228ae7fad117a8313731107f572ba4879569b6.zip
ability to download from browser
This should work for all mods, assuming that all mods come packages the same, aka, in a Zip, with mods/<mod> in it. Which from what I know they do.
Diffstat (limited to 'src/app/browser.js')
-rw-r--r--src/app/browser.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/browser.js b/src/app/browser.js
index eb18fe5..73eb6f7 100644
--- a/src/app/browser.js
+++ b/src/app/browser.js
@@ -25,6 +25,7 @@ var Browser = {
title: pkg.name,
image: pkg.icon,
author: pkg.owner,
+ download: pkg.download_url,
description: pkg.description
})
}
@@ -62,8 +63,7 @@ function BrowserEl(properties) {
<div class="text">
<div class="title">${properties.title}</div>
<div class="description">${properties.description} - ${lang("gui.browser.madeby")} ${properties.author}</div>
- <button>Install</button>
- <button>Info</button>
+ <button onclick="installFromURL('${properties.download}')">Install</button>
</div>
</div>
`