Skip to content
This repository has been archived by the owner on Sep 14, 2019. It is now read-only.

Commit

Permalink
Don't cache receiver.json as it may change more frequently now (histo…
Browse files Browse the repository at this point in the history
…ry size).
  • Loading branch information
mutability committed Jan 17, 2015
1 parent 971e575 commit 5cbe5d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion public_html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ function initialize() {

// Get receiver metadata, reconfigure using it, then continue
// with initialization
$.getJSON('data/receiver.json')
$.ajax({ url: 'data/receiver.json',
timeout: 5000,
cache: false,
dataType: 'json' })

.done(function(data) {
if (typeof data.lat !== "undefined") {
SiteShow = true;
Expand All @@ -184,6 +188,7 @@ function initialize() {
RefreshInterval = data.refresh;
PositionHistorySize = data.history;
})

.always(function() {
initialize_map();
start_load_history();
Expand Down

0 comments on commit 5cbe5d9

Please sign in to comment.