Skip to content

Commit

Permalink
fix: css var polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Feb 7, 2017
1 parent 8c7e4d7 commit 8cd386a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function cssVars () {
} else if (block.nodeName === 'LINK') {
const href = block.getAttribute('href')

if (/\.css$/.test(href)) return
if (!/\.css$/.test(href)) return

load(href).then(res => {
const style = document.createElement('style')
Expand Down

0 comments on commit 8cd386a

Please sign in to comment.