Commit 5fa674b1 by 周田

fix:防止出现 mine text 问题

parent 36d00c68
...@@ -39,9 +39,10 @@ result_arr.forEach(v => { ...@@ -39,9 +39,10 @@ result_arr.forEach(v => {
v = v.substring(0, start_index + 1) + v.substring(end_index); v = v.substring(0, start_index + 1) + v.substring(end_index);
fs.writeFileSync(path, script_str, 'utf8'); fs.writeFileSync(path, script_str, 'utf8');
path = "." + path.substring(6) path = "." + path.substring(6)
v += "\n <script src=\"" + path + "\"></script>"; v += "\n <script type=\"application/javascript\" src=\"" + path + "\"></script>";
} }
count++; count++;
v = v.substring(0, 12) + " type=\"application/javascript\" " + v.substring(12);
// console.log(v); // console.log(v);
} }
if (!v.includes(`script type="module"`)) { if (!v.includes(`script type="module"`)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment