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:
parent
70a22187f7
commit
1542f73fa5
@ -67,8 +67,8 @@ function serveFilesFromTheme(themeValue, themeApp, directory) {
|
|||||||
array = [array];
|
array = [array];
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0;i<array.length;i++) {
|
for (var i=0;i<array.length;i++) {
|
||||||
url = serveFile(themeApp,directory,array[i]);
|
var url = serveFile(themeApp,directory,array[i]);
|
||||||
if (url) {
|
if (url) {
|
||||||
result.push(url);
|
result.push(url);
|
||||||
}
|
}
|
||||||
|
@ -69,10 +69,6 @@ describe("theme handler", function() {
|
|||||||
icon: "/absolute/path/to/deploy/button/image" // or null to remove image
|
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: { // Hide unwanted menu items by id. see editor/js/main.js:loadEditor for complete list
|
||||||
"menu-item-import-library": false,
|
"menu-item-import-library": false,
|
||||||
"menu-item-export-library": false,
|
"menu-item-export-library": false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user