summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-11-30 13:00:26 +0300
committerAndrew Dolgov <[email protected]>2018-11-30 13:00:26 +0300
commitfd752a79af51ee5403f9eb7953855bd715a1ec71 (patch)
tree99b4afb1d327b5874d44828401d7fc0065a8f980 /js/tt-rss.js
parent7e8be97b660be63ff3515dfd6f61b252eef9a130 (diff)
finish xhrPost migration of js/
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index eb00ad54b..5d316c856 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -235,17 +235,15 @@ function init() {
return false;
loading_set_progress(30);
-
- const a = document.createElement('audio');
-
- const hasAudio = !!a.canPlayType;
- const hasSandbox = "sandbox" in document.createElement("iframe");
- const hasMp3 = !!(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, ''));
- const clientTzOffset = new Date().getTimezoneOffset() * 60;
-
init_hotkey_actions();
- const params = {
+ const a = document.createElement('audio');
+ const hasAudio = !!a.canPlayType;
+ const hasSandbox = "sandbox" in document.createElement("iframe");
+ const hasMp3 = !!(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, ''));
+ const clientTzOffset = new Date().getTimezoneOffset() * 60;
+
+ const params = {
op: "rpc", method: "sanityCheck", hasAudio: hasAudio,
hasMp3: hasMp3,
clientTzOffset: clientTzOffset,