diff --git a/core/core-frontend/flushbonading/index.js b/core/core-frontend/flushbonading/index.js index 157407886a..7588badfdb 100644 --- a/core/core-frontend/flushbonading/index.js +++ b/core/core-frontend/flushbonading/index.js @@ -3,7 +3,6 @@ import fs from 'node:fs' import pkg from '../package.json' assert { type: "json" }; const suffix = `${pkg.version}-${pkg.name}` -let htmlStr = '' const eleArr = [] function produceTag(obj, name) { @@ -11,15 +10,6 @@ function produceTag(obj, name) { name, attributes: obj, }) - let innerProperty = '' - Object.entries(obj).forEach(([key, value]) => { - if (['href', 'src'].includes(key)) { - innerProperty += ` ${key}="https://de2.fit2cloud.com${value}" ` - } else { - innerProperty += value ? ` ${key}="${value}" ` : '' - } - }) - htmlStr += `\n<${name} crossorigin ${innerProperty}>${name}>` } const parserStream = new WritableStream({ onopentag(name, attributes) { @@ -37,52 +27,6 @@ const parserStream = new WritableStream({ const htmlStream = fs.createReadStream('../dist/panel.html') htmlStream.pipe(parserStream).on('finish', () => { - const template = ` - - -
- - - -