Merge pull request #32 from dirtbags/nocache

Append current time to request to force reload puzzles.json
This commit is contained in:
Neale Pickett 2018-05-23 20:01:31 -06:00 committed by GitHub
commit 23ed678bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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...");