mirror of https://github.com/dirtbags/moth.git
Append current time to request to force reload puzzles.json
This commit is contained in:
parent
81e1409c46
commit
a8f15310a4
|
@ -56,7 +56,7 @@ function puzzles_start() {
|
||||||
var refreshInterval = 40 * 1000;
|
var refreshInterval = 40 * 1000;
|
||||||
|
|
||||||
var refreshCallback = puzzlesRefresh.bind(undefined, puzzlesTerminal);
|
var refreshCallback = puzzlesRefresh.bind(undefined, puzzlesTerminal);
|
||||||
var refreshFunction = loadJSON.bind(undefined, puzzlesJsonUrl, refreshCallback);
|
var refreshFunction = loadJSON.bind(undefined, puzzlesJsonUrl + '?_=' + new Date().getTime(), refreshCallback);
|
||||||
|
|
||||||
puzzlesTerminal.clear();
|
puzzlesTerminal.clear();
|
||||||
puzzlesTerminal.par("Loading...");
|
puzzlesTerminal.par("Loading...");
|
||||||
|
|
Loading…
Reference in New Issue