Download:
child 16:819d4d1ad629
parent 14:86dbd19c94e2
15:52e4260a1234
Anton Shestakov <av6@dwimlabs.net>, Sun, 05 Nov 2017 19:18:33 +0800
player: compare xhr.status to a number using !==

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
player.js file | annotate | diff | comparison | revisions
--- a/player.js Sun Nov 05 19:15:27 2017 +0800
+++ b/player.js Sun Nov 05 19:18:33 2017 +0800
@@ -41,7 +41,7 @@
xhr.open('GET', url, true);
xhr.responseType = 'arraybuffer';
xhr.onload = function() {
- if (this.status != 200) {
+ if (this.status !== 200) {
fail(this);
} else {
done(this);