mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 14:36:23 -04:00
eqeqeq
This commit is contained in:
parent
c72d3c4a0e
commit
38ef0b10e7
9 changed files with 45 additions and 45 deletions
|
@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue