refactor: migrate global styles to injectGlobalStyles

This commit is contained in:
divocat
2025-10-03 03:52:12 +03:00
parent eb0617eef1
commit db8e8e8298
5 changed files with 82 additions and 28 deletions

View File

@@ -1,2 +1,3 @@
export * from './getBaseUrl';
export * from './parseValueList';
export * from './injectGlobalStyles';

View File

@@ -0,0 +1,12 @@
import { GlobalStyles } from '../styles';
export function injectGlobalStyles() {
document.head.insertAdjacentHTML(
'beforeend',
`
<style>
${GlobalStyles}
</style>
`,
);
}