更新 main.js

This commit is contained in:
钟进 2019-02-03 00:00:41 +00:00
parent 12a1433f3f
commit 738b27b98d

View File

@ -244,6 +244,9 @@ function writeSettings() {
const ui_auth = adapter.config.ui_user && adapter.config.ui_pass ? JSON.stringify({user: adapter.config.ui_user, pass: adapter.config.ui_pass}) : '""'; const ui_auth = adapter.config.ui_user && adapter.config.ui_pass ? JSON.stringify({user: adapter.config.ui_user, pass: adapter.config.ui_pass}) : '""';
const ui_pass = '"' + adapter.config.ui_pass + '"'; const ui_pass = '"' + adapter.config.ui_pass + '"';
const node_auth = adapter.config.ui_user && adapter.config.ui_pass ? JSON.stringify({user: adapter.config.ui_user, pass: adapter.config.ui_pass}) : '""';
const node_pass = '"' + adapter.config.ui_pass + '"';
for (let a = 0; a < additional.length; a++) { for (let a = 0; a < additional.length; a++) {
if (additional[a].match(/^node-red-/)) continue; if (additional[a].match(/^node-red-/)) continue;