add a check lol

This commit is contained in:
Ashley 2023-01-31 10:47:34 +00:00
parent f246877464
commit d37ded7449

View file

@ -73,6 +73,7 @@ function init(app, config, rendertemplate) {
initlog("Loaded pages - initing poketube finnished :3");
setTimeout(function () {
setInterval(function () {
/* PokeTube Update daemon - checks for updates in poketube */
(async () => {
const url = `https://poketube.fun/api/version.json`;
@ -93,6 +94,7 @@ function init(app, config, rendertemplate) {
}
})();
}, 150000);
}, 150000);
} catch (err) {
initlog("[FAILED] Load pages \n" + err);
}