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

Commit a136e59

Browse files
committed
move percent-encoding of # to loader implementations
1 parent 8e73d6a commit a136e59

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/system-fetch.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
var fetchTextFromURL;
22
if (typeof XMLHttpRequest != 'undefined') {
33
fetchTextFromURL = function(url, fulfill, reject) {
4-
// percent encode just '#' in urls
5-
// according to https://github.com/jorendorff/js-loaders/blob/master/browser-loader.js#L238
6-
// we should encode everything, but it breaks for servers that don't expect it
7-
// like in (https://github.com/systemjs/systemjs/issues/168)
8-
if (isBrowser)
9-
url = url.replace(/#/g, '%23');
10-
114
var xhr = new XMLHttpRequest();
125
var sameDomain = true;
136
var doTimeout = false;

0 commit comments

Comments
 (0)