|
|
@ -256,10 +256,12 @@ function init() {
|
|
|
|
var hasAudio = !!a.canPlayType;
|
|
|
|
var hasAudio = !!a.canPlayType;
|
|
|
|
var hasSandbox = "sandbox" in document.createElement("iframe");
|
|
|
|
var hasSandbox = "sandbox" in document.createElement("iframe");
|
|
|
|
var hasMp3 = !!(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, ''));
|
|
|
|
var hasMp3 = !!(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, ''));
|
|
|
|
|
|
|
|
var clientTzOffset = new Date().getTimezoneOffset() * 60;
|
|
|
|
|
|
|
|
|
|
|
|
new Ajax.Request("backend.php", {
|
|
|
|
new Ajax.Request("backend.php", {
|
|
|
|
parameters: {op: "rpc", method: "sanityCheck", hasAudio: hasAudio,
|
|
|
|
parameters: {op: "rpc", method: "sanityCheck", hasAudio: hasAudio,
|
|
|
|
hasMp3: hasMp3,
|
|
|
|
hasMp3: hasMp3,
|
|
|
|
|
|
|
|
clientTzOffset: clientTzOffset,
|
|
|
|
hasSandbox: hasSandbox},
|
|
|
|
hasSandbox: hasSandbox},
|
|
|
|
onComplete: function(transport) {
|
|
|
|
onComplete: function(transport) {
|
|
|
|
backend_sanity_check_callback(transport);
|
|
|
|
backend_sanity_check_callback(transport);
|
|
|
|