diff options
Diffstat (limited to 'stylechanger.js')
-rw-r--r-- | stylechanger.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/stylechanger.js b/stylechanger.js index d6354d8..565adbf 100644 --- a/stylechanger.js +++ b/stylechanger.js @@ -44,12 +44,16 @@ liberator.plugins.styleSheetsManger = (function(){ if (globalVariables.styles) globalVariables.styles.split(/\s*,\s*/).forEach(manager.load); } function getCSSFiles() { - let files = []; + var files = []; io.getRuntimeDirectories('colors') .filter(function(colorDir) colorDir) .forEach(function(colorDir) - io.readDirectory(colorDir).forEach(function(file) - /\.css$/.test(file.leafName.toLowerCase()) && !file.isDirectory() && files.push(file))); + io.readDirectory(colorDir) + .forEach(function(file) { + if (/\.css$/.test(file.leafName.toLowerCase()) && !file.isDirectory()) { + files.push(file); + } + })); return files; } function getURIFromName(aName){ |