Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
replace onload with addEventListener in inject_styles (#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitstarski authored Jul 20, 2021
1 parent b3298c3 commit ae00b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/create_compilers/RollupCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export default function(files) {
if (link.sheet) {
fulfil();
} else {
link.onload = function() { return fulfil() };
link.onerror = reject;
link.addEventListener('load', function() { return fulfil() });
link.addEventListener('error', reject);
}
})}));
};`.trim();
Expand Down

0 comments on commit ae00b6a

Please sign in to comment.