summaryrefslogtreecommitdiffstats
path: root/assets/js/playlist_widget.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/playlist_widget.js
parentc72d3c4a0ea9329fa455d5c066aff598c307d04d (diff)
downloadinvidious-38ef0b10e79232de1c6fa2062d9983e4a944f6be.tar.gz
invidious-38ef0b10e79232de1c6fa2062d9983e4a944f6be.tar.bz2
invidious-38ef0b10e79232de1c6fa2062d9983e4a944f6be.zip
eqeqeq
Diffstat (limited to '')
-rw-r--r--assets/js/playlist_widget.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/assets/js/playlist_widget.js b/assets/js/playlist_widget.js
index 0cf721a1..c7f4805f 100644
--- a/assets/js/playlist_widget.js
+++ b/assets/js/playlist_widget.js
@@ -15,8 +15,8 @@ function add_playlist_video(target) {
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onreadystatechange = function () {
- if (xhr.readyState == 4) {
- if (xhr.status == 200) {
+ if (xhr.readyState === 4) {
+ if (xhr.status === 200) {
option.innerText = '✓' + option.innerText;
}
}
@@ -39,8 +39,8 @@ function add_playlist_item(target) {
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onreadystatechange = function () {
- if (xhr.readyState == 4) {
- if (xhr.status != 200) {
+ if (xhr.readyState === 4) {
+ if (xhr.status !== 200) {
tile.style.display = '';
}
}
@@ -63,8 +63,8 @@ function remove_playlist_item(target) {
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onreadystatechange = function () {
- if (xhr.readyState == 4) {
- if (xhr.status != 200) {
+ if (xhr.readyState === 4) {
+ if (xhr.status !== 200) {
tile.style.display = '';
}
}