mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Device dashboard refactoring
This commit is contained in:
1 parent
609a0bd905
commit
1045635d81
13 files changed
+624
-1081
No files matched your search
@@ -247,7 +247,7 @@
|
||||
}
|
||||
}
|
||||
for (const attr of el.attributes) {
|
||||
const cv = decodeURIComponent(attr.value || '');
|
||||
const cv = attr.value || '';
|
||||
if (attr.originalValue || cv.includes('${')) {
|
||||
if (!attr.originalValue) attr.originalValue = cv;
|
||||
const v = substituteExpressions(attr.originalValue, context);
|
||||
|
||||
+1
-1
@@ -147,7 +147,7 @@ async function processHtml(content) {
|
||||
processHtml(html).then(result => {
|
||||
if (outputFile) {
|
||||
fs.writeFileSync(outputFile, result);
|
||||
console.log(`Written to ${outputFile}`);
|
||||
//console.log(`Written to ${outputFile}`);
|
||||
} else {
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user