Skip to content

Commit

Permalink
fix: prepending SDK stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
zstix committed Jun 2, 2020
1 parent de44a6c commit 869fc5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useStylesheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const useStylesheet = (src) => {
link.crossOrigin = 'anonymous';
link.onload = () => setLoaded(true);
link.href = src;
document.head.appendChild(link);
document.head.prepend(link);

return () => document.head.removeChild(link);
}, [src]);
Expand Down

0 comments on commit 869fc5b

Please sign in to comment.