From 1a5dec291f84129dd19ce75a1869a99dd21365b2 Mon Sep 17 00:00:00 2001 From: eyhn Date: Sat, 22 Apr 2017 15:48:19 +0800 Subject: [PATCH] fix(lsloader): Fix that does not generate hex when missing .js and .css suffixes --- scripts/lib/css_lsload.js | 3 +-- scripts/lib/js_lsload.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/lib/css_lsload.js b/scripts/lib/css_lsload.js index a963535a2..8be2c6f82 100644 --- a/scripts/lib/css_lsload.js +++ b/scripts/lib/css_lsload.js @@ -13,12 +13,11 @@ function cssHelper() { if (i) result += '\n'; - var localpath = path_for.call(this,path); - if (Array.isArray(path)) { result += jsHelper.apply(this, path); } else { if (path.indexOf('?') < 0 && path.substring(path.length - 4, path.length) !== '.css') path += '.css'; + var localpath = path_for.call(this,path); result += ''