diff options
author | drry | 2008-11-03 15:58:50 +0000 |
---|---|---|
committer | drry | 2008-11-03 15:58:50 +0000 |
commit | 443857dffe946e93865bfd36bef4001203df2a39 (patch) | |
tree | dba694b23739c5c88c6d16eb596ab832430d77c7 /stylechanger.js | |
parent | 596c1ec007a3f431b84da3fed1a30871e8bd64dc (diff) | |
download | vimperator-plugins-443857dffe946e93865bfd36bef4001203df2a39.tar.bz2 |
* cosmetic changes.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22654 d0d07461-0603-4401-acd4-de1884942a52
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){ |