diff --git a/legacy/html5.html b/legacy/html5.html index 1f3bb13..1953161 100644 --- a/legacy/html5.html +++ b/legacy/html5.html @@ -3,6 +3,7 @@ Monochrome Legacy (HTML5) + @@ -71,7 +72,7 @@ aac audio (may work in unsupported browsers with adobe flash) or flac audio should - work @@ -89,7 +90,7 @@ id="audio-player" controls preload="none" - style="width: 300px; height: 30px" + style="width: 300px; height: 45px" > Your browser does not support the audio element. diff --git a/legacy/html5.js b/legacy/html5.js index 3634f51..e856cda 100644 --- a/legacy/html5.js +++ b/legacy/html5.js @@ -47,10 +47,9 @@ $(document).ready(function () { } }); } - // Enable CORS logic in jQuery generally (if supported by this jQuery version) - if ($.support) { - $.support.cors = true; - } + // REMOVED: $.support.cors = true; + // We MUST NOT set this for IE9. If we do, jQuery tries to use standard XHR for cross-domain, + // which fails ("Access is denied"). Leaving it false forces jQuery to use our custom XDR transport. var apiInstances = []; var currentInstanceIndex = 0; @@ -300,6 +299,12 @@ $(document).ready(function () { } } + function updateStatus(msg) { + if (currentTrackInfo.length) { + currentTrackInfo.html(msg); + } + } + function handleError(msg) { if (!attemptFallback) { window.playTrack(id, true); diff --git a/legacy/legacy.js b/legacy/legacy.js index 8f1b5fc..cd5c53e 100644 --- a/legacy/legacy.js +++ b/legacy/legacy.js @@ -46,10 +46,9 @@ $(document).ready(function () { } }); } - // Enable CORS logic in jQuery generally (if supported by this jQuery version) - if ($.support) { - $.support.cors = true; - } + // REMOVED: $.support.cors = true; + // We MUST NOT set this for IE9. If we do, jQuery tries to use standard XHR for cross-domain, + // which fails ("Access is denied"). Leaving it false forces jQuery to use our custom XDR transport. var apiInstances = []; var currentInstanceIndex = 0;