aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/static/js/common.js')
-rw-r--r--youtube/static/js/common.js4
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;