Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
v0.17.6
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 13, 2015
1 parent ae60fff commit 4ce001c
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 23 deletions.
4 changes: 2 additions & 2 deletions dist/es6-module-loader-dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es6-module-loader-dev.js.map

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions dist/es6-module-loader-dev.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -1457,13 +1457,6 @@ SystemLoader.prototype.instantiate = function(load) {
var fetchTextFromURL;
if (typeof XMLHttpRequest != 'undefined') {
fetchTextFromURL = function(url, fulfill, reject) {
// percent encode just '#' in urls
// according to https://github.com/jorendorff/js-loaders/blob/master/browser-loader.js#L238
// we should encode everything, but it breaks for servers that don't expect it
// like in (https://github.com/systemjs/systemjs/issues/168)
if (isBrowser)
url = url.replace(/#/g, '%23');

var xhr = new XMLHttpRequest();
var sameDomain = true;
var doTimeout = false;
Expand Down Expand Up @@ -1503,7 +1496,8 @@ SystemLoader.prototype.instantiate = function(load) {
};
xhr.open("GET", url, true);

xhr.setRequestHeader('Accept', 'application/x-es-module */*');
if (xhr.setRequestHeader)
xhr.setRequestHeader('Accept', 'application/x-es-module */*');

if (doTimeout)
setTimeout(function() {
Expand Down
4 changes: 2 additions & 2 deletions dist/es6-module-loader.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es6-module-loader.js.map

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions dist/es6-module-loader.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -1115,13 +1115,6 @@ SystemLoader.prototype.instantiate = function(load) {
var fetchTextFromURL;
if (typeof XMLHttpRequest != 'undefined') {
fetchTextFromURL = function(url, fulfill, reject) {
// percent encode just '#' in urls
// according to https://github.com/jorendorff/js-loaders/blob/master/browser-loader.js#L238
// we should encode everything, but it breaks for servers that don't expect it
// like in (https://github.com/systemjs/systemjs/issues/168)
if (isBrowser)
url = url.replace(/#/g, '%23');

var xhr = new XMLHttpRequest();
var sameDomain = true;
var doTimeout = false;
Expand Down Expand Up @@ -1161,7 +1154,8 @@ SystemLoader.prototype.instantiate = function(load) {
};
xhr.open("GET", url, true);

xhr.setRequestHeader('Accept', 'application/x-es-module */*');
if (xhr.setRequestHeader)
xhr.setRequestHeader('Accept', 'application/x-es-module */*');

if (doTimeout)
setTimeout(function() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "es6-module-loader",
"description": "An ES6 Module Loader shim",
"version": "0.17.5",
"version": "0.17.6",
"homepage": "https://github.com/ModuleLoader/es6-module-loader",
"author": {
"name": "Guy Bedford, Luke Hoban, Addy Osmani",
Expand Down

0 comments on commit 4ce001c

Please sign in to comment.