From 869fc5bc27e68d108ce084bdef7a2ea6ca0e587b Mon Sep 17 00:00:00 2001 From: Zack Stickles Date: Tue, 2 Jun 2020 14:33:42 -0700 Subject: [PATCH] fix: prepending SDK stylesheet --- src/hooks/useStylesheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useStylesheet.js b/src/hooks/useStylesheet.js index 6c6323aca..db6dd75f8 100644 --- a/src/hooks/useStylesheet.js +++ b/src/hooks/useStylesheet.js @@ -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]);