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

Commit

Permalink
Merge pull request rnosov#29 from noelzubin/master
Browse files Browse the repository at this point in the history
insertRule DOMExcption; Use wrapped in try catch
  • Loading branch information
rnosov committed Aug 16, 2018
2 parents 19aa39a + fb7415d commit 98d5c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function animation(effect) {
const rule = `@keyframes ${name + counter}{${effect}}`;
const effectId = effectMap[effect];
if (!effectId){
sheet.insertRule(rule, sheet.cssRules.length);
insertRule(rule);
effectMap[effect] = counter;
return `${name}${counter++}`;
}
Expand Down

0 comments on commit 98d5c86

Please sign in to comment.