Skip to content

Commit

Permalink
make XMLHttpRequest async
Browse files Browse the repository at this point in the history
  • Loading branch information
lejenome committed Nov 23, 2014
1 parent 1169d79 commit 8cb0b0c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Moez Bouhlel <[email protected]> (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",
Expand Down
Binary file modified youtube-video-player.xpi
Binary file not shown.

0 comments on commit 8cb0b0c

Please sign in to comment.