summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-30 12:40:23 +0300
committerAndrew Dolgov <[email protected]>2010-11-30 12:40:23 +0300
commitc3edc667f127b9e36ecc08eb790f6c754e413e8f (patch)
tree0c582d5dfd803c72d13127ce1eeb92c69328069f /tt-rss.js
parentd769a0f75a42323a38cce3637629a4750443e67c (diff)
use html5 audio player instead of flash when possible
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js4
1 files changed, 3 insertions, 1 deletions
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);
} });