mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-01 09:47:22 +01:00
fix a silly issue :3
This commit is contained in:
parent
a615ed855c
commit
416ced03ec
1 changed files with 3 additions and 4 deletions
|
@ -33,18 +33,17 @@ function init(app, config, rendertemplate) {
|
||||||
.then((res) => res.text())
|
.then((res) => res.text())
|
||||||
.then((json) => JSON.parse(json));
|
.then((json) => JSON.parse(json));
|
||||||
|
|
||||||
if (f.versionnumber === api) {
|
if (f.vernum == api) {
|
||||||
console.log("[UPDATE DAEMON] PokeTube is up to date!");
|
console.log("[UPDATE DAEMON] PokeTube is up to date!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( api !== f.versionnumber) {
|
if (f.vernum != api) {
|
||||||
console.warn(
|
console.warn(
|
||||||
"[UPDATE DAEMON] PokeTube is out of date! please re-clone the poketube repo :p "
|
"[UPDATE DAEMON] PokeTube is out of date! please re-clone the poketube repo :p "
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
||||||
if (Math.random() < 0.5) {
|
if (Math.random() < 0.5) {
|
||||||
initlog("https://poketube.fun/watch?v=lpiB2wMc49g");
|
initlog("https://poketube.fun/watch?v=lpiB2wMc49g");
|
||||||
}
|
}
|
||||||
|
@ -72,7 +71,7 @@ function init(app, config, rendertemplate) {
|
||||||
|
|
||||||
initlog("Loading static pages");
|
initlog("Loading static pages");
|
||||||
require("../init/pages-static.js")(app, config, rendertemplate);
|
require("../init/pages-static.js")(app, config, rendertemplate);
|
||||||
initlog("loaded static pages");
|
initlog("Loaded static pages");
|
||||||
initlog("Loading main pages");
|
initlog("Loading main pages");
|
||||||
require("../init/pages-404-and-main.js")(app, config, rendertemplate);
|
require("../init/pages-404-and-main.js")(app, config, rendertemplate);
|
||||||
initlog("Loaded main pages");
|
initlog("Loaded main pages");
|
||||||
|
|
Loading…
Reference in a new issue