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", var nightly = function() {
function(button, version, res) { addButtonInfo("https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk/info", "#alfa-button", "#alfa-version",
var json = JSON.parse(res.responseText); function(button, version, res) {
button.href = json.url; var json = JSON.parse(res.responseText);
version.innerHTML = "v" + json.latestVersionCode; button.href = json.url;
} version.innerHTML = "v" + json.latestVersionCode;
); }
)
};
nightly();
setInterval(nightly, 60 * 1000);
</script> </script>
</body> </body>
</html> </html>