works now on ie9

This commit is contained in:
uimaxbai 2025-12-31 14:10:43 +00:00
parent 8270127cb7
commit 15318028f0
3 changed files with 15 additions and 10 deletions

View file

@ -3,6 +3,7 @@
<head>
<title>Monochrome Legacy (HTML5)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" type="text/css" href="legacy.css" />
<script type="text/javascript" src="jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="html5.js"></script>
@ -71,7 +72,7 @@
<a href="https://caniuse.com/aac">aac audio</a> (may work in
unsupported browsers with adobe flash) or
<a href="https://caniuse.com/flac">flac audio</a> should
work</font
work (aka IE9+, Safari 4+, Chrome 12+, Firefox 22+)</font
>
</center>
</td>
@ -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.
</audio>

View file

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

View file

@ -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;