- Fix (npm): Update load-stylesheets to avoid recursion upon CSS loading errors

This commit is contained in:
Brett Zamir
2018-07-18 21:10:05 -07:00
parent 8a4bca4e32
commit 3289131f7c
10 changed files with 20 additions and 16 deletions

5
dist/index-es.js vendored
View File

@@ -24840,8 +24840,9 @@ function loadStylesheets(stylesheets) {
var link = document.createElement('link');
return new Promise(function (resolve, reject) {
var rej = reject;
if (acceptErrors) {
reject = typeof acceptErrors === 'function' ? function (error) {
rej = typeof acceptErrors === 'function' ? function (error) {
acceptErrors({ error: error, stylesheetURL: stylesheetURL, options: options, resolve: resolve, reject: reject });
} : resolve;
}
@@ -24883,7 +24884,7 @@ function loadStylesheets(stylesheets) {
link.href = stylesheetURL;
addLink();
link.addEventListener('error', function (error) {
reject(error);
rej(error);
});
link.addEventListener('load', function () {
resolve(link);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

5
dist/index-umd.js vendored
View File

@@ -24846,8 +24846,9 @@
var link = document.createElement('link');
return new Promise(function (resolve, reject) {
var rej = reject;
if (acceptErrors) {
reject = typeof acceptErrors === 'function' ? function (error) {
rej = typeof acceptErrors === 'function' ? function (error) {
acceptErrors({ error: error, stylesheetURL: stylesheetURL, options: options, resolve: resolve, reject: reject });
} : resolve;
}
@@ -24889,7 +24890,7 @@
link.href = stylesheetURL;
addLink();
link.addEventListener('error', function (error) {
reject(error);
rej(error);
});
link.addEventListener('load', function () {
resolve(link);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long