Refresh nightly in 60s

This commit is contained in:
Mikołaj Pich 2018-05-04 23:45:06 +02:00
parent b4bc804de4
commit 83d4f68b6d

View file

@ -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>