Fix global leaks in theme.js

This commit is contained in:
Nick O'Leary
2017-07-04 09:43:16 +01:00
parent 70a22187f7
commit 1542f73fa5
2 changed files with 2 additions and 6 deletions

View File

@@ -67,8 +67,8 @@ function serveFilesFromTheme(themeValue, themeApp, directory) {
array = [array];
}
for (i=0;i<array.length;i++) {
url = serveFile(themeApp,directory,array[i]);
for (var i=0;i<array.length;i++) {
var url = serveFile(themeApp,directory,array[i]);
if (url) {
result.push(url);
}