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

Fix variable leak in theme.js

This commit is contained in:
Nick O'Leary 2016-01-08 13:41:33 +00:00
parent 70f3e72a20
commit 41f3b0c333

View File

@ -56,8 +56,6 @@ function serveFile(app,baseUrl,file) {
module.exports = { module.exports = {
init: function(runtime) { init: function(runtime) {
var settings = runtime.settings; var settings = runtime.settings;
var i;
var url;
themeContext = clone(defaultContext); themeContext = clone(defaultContext);
if (runtime.version) { if (runtime.version) {
themeContext.version = runtime.version(); themeContext.version = runtime.version();
@ -68,6 +66,8 @@ module.exports = {
}, },
app: function() { app: function() {
var i;
var url;
themeSettings = {}; themeSettings = {};
var themeApp = express(); var themeApp = express();