summaryrefslogtreecommitdiffstats
path: root/assets/js/watch.js
diff options
context:
space:
mode:
authormeow <woem>2022-04-20 12:13:16 +0300
committermeow <woem>2022-04-25 10:14:24 +0300
commit38ef0b10e79232de1c6fa2062d9983e4a944f6be (patch)
treef56d155efafe0cace0e5b98ed905961dd85832bd /assets/js/watch.js
parentc72d3c4a0ea9329fa455d5c066aff598c307d04d (diff)
downloadinvidious-38ef0b10e79232de1c6fa2062d9983e4a944f6be.tar.gz
invidious-38ef0b10e79232de1c6fa2062d9983e4a944f6be.tar.bz2
invidious-38ef0b10e79232de1c6fa2062d9983e4a944f6be.zip
eqeqeq
Diffstat (limited to 'assets/js/watch.js')
-rw-r--r--assets/js/watch.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/assets/js/watch.js b/assets/js/watch.js
index 578d4ac0..ebc77905 100644
--- a/assets/js/watch.js
+++ b/assets/js/watch.js
@@ -117,7 +117,7 @@ function number_with_separator(val) {
}
function get_playlist(plid, retries) {
- if (retries == undefined) retries = 5;
+ if (retries === undefined) retries = 5;
playlist = document.getElementById('playlist');
if (retries <= 0) {
@@ -147,8 +147,8 @@ function get_playlist(plid, retries) {
xhr.open('GET', plid_url, true);
xhr.onreadystatechange = function () {
- if (xhr.readyState == 4) {
- if (xhr.status == 200) {
+ if (xhr.readyState === 4) {
+ if (xhr.status === 200) {
playlist.innerHTML = xhr.response.playlistHtml;
var nextVideo = document.getElementById(xhr.response.nextVideo);
nextVideo.parentNode.parentNode.scrollTop = nextVideo.offsetTop;
@@ -210,7 +210,7 @@ function get_playlist(plid, retries) {
}
function get_reddit_comments(retries) {
- if (retries == undefined) retries = 5;
+ if (retries === undefined) retries = 5;
comments = document.getElementById('comments');
if (retries <= 0) {
@@ -232,8 +232,8 @@ function get_reddit_comments(retries) {
xhr.open('GET', url, true);
xhr.onreadystatechange = function () {
- if (xhr.readyState == 4) {
- if (xhr.status == 200) {
+ if (xhr.readyState === 4) {
+ if (xhr.status === 200) {
comments.innerHTML = ' \
<div> \
<h3> \
@@ -287,7 +287,7 @@ function get_reddit_comments(retries) {
}
function get_youtube_comments(retries) {
- if (retries == undefined) retries = 5;
+ if (retries === undefined) retries = 5;
comments = document.getElementById('comments');
if (retries <= 0) {
@@ -310,8 +310,8 @@ function get_youtube_comments(retries) {
xhr.open('GET', url, true);
xhr.onreadystatechange = function () {
- if (xhr.readyState == 4) {
- if (xhr.status == 200) {
+ if (xhr.readyState === 4) {
+ if (xhr.status === 200) {
comments.innerHTML = ' \
<div> \
<h3> \
@@ -384,8 +384,8 @@ function get_youtube_replies(target, load_more, load_replies) {
xhr.open('GET', url, true);
xhr.onreadystatechange = function () {
- if (xhr.readyState == 4) {
- if (xhr.status == 200) {
+ if (xhr.readyState === 4) {
+ if (xhr.status === 200) {
if (load_more) {
body = body.parentNode.parentNode;
body.removeChild(body.lastElementChild);