From 8cb0b0cb0782f2386eca339f9a95dd5ec2f1d1f2 Mon Sep 17 00:00:00 2001 From: Moez Bouhlel Date: Sun, 23 Nov 2014 21:31:17 +0100 Subject: [PATCH] make XMLHttpRequest async --- data/youtube.js | 2 +- package.json | 2 +- youtube-video-player.xpi | Bin 12268 -> 12267 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/youtube.js b/data/youtube.js index 8de200c..353fb94 100644 --- a/data/youtube.js +++ b/data/youtube.js @@ -113,7 +113,7 @@ function asyncText(url, headers, success) { return new Promise(function (resolve, reject) { var xhr = new XMLHttpRequest(); - xhr.open("GET", url, false); + xhr.open("GET", url, true); if (xhr.overrideMimeType) xhr.overrideMimeType("text/plain"); xhr.onload = function () { diff --git a/package.json b/package.json index ff0e74d..131e831 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "author": "Moez Bouhlel (http://lejenome.github.io/)", "homepage": "https://github.com/lejenome/youtube-html5-player", "license": "MPL 2.0", - "version": "0.1.1", + "version": "0.1.2", "preferences": [ { "name": "preferredCodec", diff --git a/youtube-video-player.xpi b/youtube-video-player.xpi index dd7783bfbaccd37a611e32ef65bb886cd94673a7..df386953f574d0ecc3654e721bea602698cf6f64 100644 GIT binary patch delta 1874 zcmZWqcTm#_7EVG4gd$7T1Q84MPOBmzxHNG=1U$O3I5#_YxA*>d@0&MozBlvc&G)Ui{_ZMnWy%AU0D(aK zpox-jqrO5YK7}pr4W=f2^M4pB(Tr6uo;eu*e44~*x-*PtH?hjgKc8l$1^0h=ojrg@MB$6QQq(wt3G2S5d=|BhpA%Z_+vA890 zQA_*n>e4%BQ%X9_EdE*4R<(tv1SM5)r?Oz?9DV^dTZ%JID2t zcJaM)cLu^mE%nZ2E-Hi`!n^hV`>fTS5K}N@qNMsKXytKXE-T#Vmpw`c1_lC2R`*FK z@KVJ?n)1&YPhM3LpuBYm5~xSn@x8)ZbEU49`Am@ASp(8(xo5K!>AO4I2}o$FdqVV= zi0(I=yEzBJ5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