Skip to content

Commit d8abeb8

Browse files
committed
always use Promise.resolve(fetch(...)) because of core-js
1 parent 26beaa9 commit d8abeb8

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "event-source-polyfill",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"main": "src/eventsource.js"
55
}

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "event-source-polyfill",
33
"repo": "yaffle/eventsource",
44
"description": "a polyfill for http://www.w3.org/TR/eventsource/",
5-
"version": "1.0.4",
5+
"version": "1.0.5",
66
"keywords": [
77
"sse",
88
"server sent events",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "event-source-polyfill",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "A polyfill for http://www.w3.org/TR/eventsource/ ",
55
"main": "src/eventsource.js",
66
"scripts": {

src/eventsource.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@
4646
};
4747
}
4848

49-
// see #118
50-
// We don't care about the content of the data URI, but Edge 15 will crash if the content is empty (#123), so make it one byte.
51-
if (fetch != undefined && fetch("data:,a").finally == undefined) {
49+
// see #118, #123, #125
50+
if (fetch != undefined && true) {
5251
var originalFetch = fetch;
5352
fetch = function (url, options) {
5453
return Promise.resolve(originalFetch(url, options));

src/eventsource.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/eventsource.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
};
4747
}
4848

49-
// see #118
50-
if (fetch != undefined && fetch("data:text/plain,").finally == undefined) {
49+
// see #118, #123, #125
50+
if (fetch != undefined && true) {
5151
var originalFetch = fetch;
5252
fetch = function (url, options) {
5353
return Promise.resolve(originalFetch(url, options));

0 commit comments

Comments
 (0)