1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
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);
}

View File

@ -69,10 +69,6 @@ describe("theme handler", function() {
icon: "/absolute/path/to/deploy/button/image" // or null to remove image
},
customScripts: [
"/absolute/path/to/script.js"
],
menu: { // Hide unwanted menu items by id. see editor/js/main.js:loadEditor for complete list
"menu-item-import-library": false,
"menu-item-export-library": false,