We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea378e commit e4a1b0cCopy full SHA for e4a1b0c
src/addLink.ts
@@ -0,0 +1,8 @@
1
+import { createElement } from "./createElement"
2
+export function addLink(str: string) {
3
+ document.head.appendChild(createElement('link', {
4
+ rel: 'stylesheet',
5
+ href: str,
6
+ type: 'text/css'
7
+ }))
8
+}
0 commit comments