diff options
| author | meow <woem> | 2022-06-05 20:54:48 +0300 |
|---|---|---|
| committer | meow <woem> | 2022-06-05 20:54:48 +0300 |
| commit | d3ab4a51457ee2f0596db8c2a735ef220105dea8 (patch) | |
| tree | 0949800ad3f6cb30fceb3cd7dd81e93d0608bd43 /assets/js/watch.js | |
| parent | f2f3f045e5482618c6dcc18c410556a3b4045f99 (diff) | |
| download | invidious-d3ab4a51457ee2f0596db8c2a735ef220105dea8.tar.gz invidious-d3ab4a51457ee2f0596db8c2a735ef220105dea8.tar.bz2 invidious-d3ab4a51457ee2f0596db8c2a735ef220105dea8.zip | |
JS. Trailing spaces removed
Diffstat (limited to 'assets/js/watch.js')
| -rw-r--r-- | assets/js/watch.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/assets/js/watch.js b/assets/js/watch.js index f78b9242..cff84e4d 100644 --- a/assets/js/watch.js +++ b/assets/js/watch.js @@ -172,7 +172,7 @@ function get_reddit_comments() { var onNon200 = function (xhr) { comments.innerHTML = fallback; }; if (video_data.params.comments[1] === 'youtube') onNon200 = function (xhr) {}; - + helpers.xhr('GET', url, {retries: 5, entity_name: ''}, { on200: function (response) { comments.innerHTML = ' \ @@ -218,11 +218,11 @@ function get_youtube_comments() { '?format=html' + '&hl=' + video_data.preferences.locale + '&thin_mode=' + video_data.preferences.thin_mode; - + var onNon200 = function (xhr) { comments.innerHTML = fallback; }; if (video_data.params.comments[1] === 'youtube') onNon200 = function (xhr) {}; - + helpers.xhr('GET', url, {retries: 5, entity_name: 'comments'}, { on200: function (response) { comments.innerHTML = ' \ @@ -304,11 +304,11 @@ function get_youtube_replies(target, load_more, load_replies) { } }, onNon200: function (xhr) { - body.innerHTML = fallback; + body.innerHTML = fallback; }, onTimeout: function (xhr) { console.warn('Pulling comments failed'); - body.innerHTML = fallback; + body.innerHTML = fallback; } }); } |
