mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix global leaks in theme.js
This commit is contained in:
		| @@ -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); | ||||
|             } | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user