mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-13 19:11:10 -04:00
Fix for me and IE booth being idiots.
Added a random parameter to the xml-rpc call to prevent IE caching.
This commit is contained in:
parent
422f0841c2
commit
74ab93a851
@ -3,10 +3,10 @@ Event.observe(window,'load',initStatus);
|
|||||||
var UPDATE_FREQUENCY = 5000; // number of ms between updates
|
var UPDATE_FREQUENCY = 5000; // number of ms between updates
|
||||||
|
|
||||||
function initStatus(e) {
|
function initStatus(e) {
|
||||||
new Ajax.Request('xml-rpc?method=stats',{method: 'get',onComplete:rsStats});
|
new Ajax.Request('xml-rpc?method=stats&iefix='+Math.random(),{method: 'get',onComplete:rsStats});
|
||||||
|
|
||||||
window.setInterval(function () {
|
window.setInterval(function () {
|
||||||
new Ajax.Request('xml-rpc?method=stats',{method: 'get',onComplete:rsStats});
|
new Ajax.Request('xml-rpc?method=stats&iefix='+Math.random(),{method: 'get',onComplete:rsStats});
|
||||||
},UPDATE_FREQUENCY);
|
},UPDATE_FREQUENCY);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user