Skip to content

Commit 8cd386a

Browse files
committed
fix: css var polyfill
1 parent 8c7e4d7 commit 8cd386a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/polyfill.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function cssVars () {
1616
} else if (block.nodeName === 'LINK') {
1717
const href = block.getAttribute('href')
1818

19-
if (/\.css$/.test(href)) return
19+
if (!/\.css$/.test(href)) return
2020

2121
load(href).then(res => {
2222
const style = document.createElement('style')

0 commit comments

Comments
 (0)