From 83d4f68b6dc38d1938170c02865379a25f2ec5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Fri, 4 May 2018 23:45:06 +0200 Subject: [PATCH] Refresh nightly in 60s --- index.html | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 7a1f93d..e7de0de 100644 --- a/index.html +++ b/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);