lix02 commited on
Commit
ea32779
Β·
verified Β·
1 Parent(s): a5e4f97

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -90,7 +90,7 @@ app.get('/*', async (req, res) => {
90
  const importmapContent = result.htmlContent.match(/<script type="importmap" nonce="">.*?<\/script>/s);
91
  if (importmapContent) {
92
  let pextractedString = importmapContent[0];
93
- pextractedString = pextractedString.replace('<script type="importmap" nonce="">', '{').replace('<\/script>', '}');
94
  res.set('Content-Type', 'text/plain');
95
  res.send(pextractedString); // ε‘ι€ζε–εŽηš„ε­—η¬¦δΈ²
96
  } else {
 
90
  const importmapContent = result.htmlContent.match(/<script type="importmap" nonce="">.*?<\/script>/s);
91
  if (importmapContent) {
92
  let pextractedString = importmapContent[0];
93
+ pextractedString = pextractedString.replace('<script type="importmap" nonce="">', '').replace('<\/script>', '');
94
  res.set('Content-Type', 'text/plain');
95
  res.send(pextractedString); // ε‘ι€ζε–εŽηš„ε­—η¬¦δΈ²
96
  } else {