From c3edc667f127b9e36ecc08eb790f6c754e413e8f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 30 Nov 2010 12:40:23 +0300 Subject: use html5 audio player instead of flash when possible --- tt-rss.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tt-rss.js') diff --git a/tt-rss.js b/tt-rss.js index fef3066f3..d619c4c02 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -318,8 +318,10 @@ function init() { loading_set_progress(20); + var hasAudio = !!((myAudioTag = document.createElement('audio')).canPlayType); + new Ajax.Request("backend.php", { - parameters: {op: "rpc", subop: "sanityCheck"}, + parameters: {op: "rpc", subop: "sanityCheck", hasAudio: hasAudio}, onComplete: function(transport) { backend_sanity_check_callback(transport); } }); -- cgit v1.2.3