Refresh nightly in 60s
This commit is contained in:
parent
b4bc804de4
commit
83d4f68b6d
1 changed files with 13 additions and 7 deletions
20
index.html
20
index.html
|
@ -84,13 +84,19 @@
|
|||
}
|
||||
);
|
||||
|
||||
addButtonInfo("https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk/info", "#alfa-button", "#alfa-version",
|
||||
function(button, version, res) {
|
||||
var json = JSON.parse(res.responseText);
|
||||
button.href = json.url;
|
||||
version.innerHTML = "v" + json.latestVersionCode;
|
||||
}
|
||||
);
|
||||
var nightly = function() {
|
||||
addButtonInfo("https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk/info", "#alfa-button", "#alfa-version",
|
||||
function(button, version, res) {
|
||||
var json = JSON.parse(res.responseText);
|
||||
button.href = json.url;
|
||||
version.innerHTML = "v" + json.latestVersionCode;
|
||||
}
|
||||
)
|
||||
};
|
||||
|
||||
nightly();
|
||||
|
||||
setInterval(nightly, 60 * 1000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue