Skip to content

Commit e4a1b0c

Browse files
author
Simon he
committed
chore: add addLink
1 parent 8ea378e commit e4a1b0c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/addLink.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)