diff options
author | James Taylor <28744867+user234683@users.noreply.github.com> | 2020-10-21 18:53:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 18:53:12 -0700 |
commit | aa52c7a42e9573105dfadb07981c7f5f1447ca9d (patch) | |
tree | 6bff6ae507db03e435bb04e3969ef08093f3f8d8 /youtube/static/js | |
parent | 3b5df36b0310b751fc25f8c0b7167c659c8259de (diff) | |
parent | f01ef36a37c9112eca3f85d49622c41d68000a69 (diff) | |
download | yt-local-aa52c7a42e9573105dfadb07981c7f5f1447ca9d.tar.lz yt-local-aa52c7a42e9573105dfadb07981c7f5f1447ca9d.tar.xz yt-local-aa52c7a42e9573105dfadb07981c7f5f1447ca9d.zip |
Merge branch 'master' into add_sponsorblock
Diffstat (limited to 'youtube/static/js')
-rw-r--r-- | youtube/static/js/common.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube/static/js/common.js b/youtube/static/js/common.js index 2db4390..20cfddd 100644 --- a/youtube/static/js/common.js +++ b/youtube/static/js/common.js @@ -41,9 +41,7 @@ function doXhr(url, callback=null) { var xhr = new XMLHttpRequest(); xhr.open("GET", url); xhr.onload = (e) => { - let ok = xhr.status >= 200 && xhr.status < 300; - if (ok) callback(e.currentTarget.response); - else alert(`${xhr.responseURL} status code: ${xhr.status}`); + callback(e.currentTarget.response); } xhr.send(); return xhr; |