From 8cd386ae4970c569e2b76a44e57e5066fc9c3db2 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Tue, 7 Feb 2017 20:17:54 +0800 Subject: [PATCH] fix: css var polyfill --- src/polyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polyfill.js b/src/polyfill.js index d2418a27..165fba2e 100644 --- a/src/polyfill.js +++ b/src/polyfill.js @@ -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')