mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05: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
|
||||
|
||||
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 () {
|
||||
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);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user