aboutsummaryrefslogtreecommitdiffstats
path: root/stylechanger.js
diff options
context:
space:
mode:
authordrry2008-11-03 15:58:50 +0000
committerdrry2008-11-03 15:58:50 +0000
commit443857dffe946e93865bfd36bef4001203df2a39 (patch)
treedba694b23739c5c88c6d16eb596ab832430d77c7 /stylechanger.js
parent596c1ec007a3f431b84da3fed1a30871e8bd64dc (diff)
downloadvimperator-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.js10
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){