Update index.js
Browse files
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="">', '
|
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 {
|