thecheesiumrunner 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +7 -2
- package/package.json +1 -1
package/dist/index.html
CHANGED
|
@@ -318,7 +318,12 @@ var a0_0x27b97e=a0_0x5104;function a0_0x5104(_0x5305b5,_0x21c62f){_0x5305b5=_0x5
|
|
|
318
318
|
html, body { margin: 0 !important; padding: 0 !important; width: 100% !important; height: 100% !important; overflow: auto !important; }
|
|
319
319
|
body > * { max-width: 100% !important; }
|
|
320
320
|
</style>`;
|
|
321
|
-
|
|
321
|
+
let modified = rewriteAbsolutePaths(html, cdnOrigin);
|
|
322
|
+
const hasBaseHref = /<base\b[^>]*\bhref[\s=]/i.test(modified);
|
|
323
|
+
if (hasBaseHref) {
|
|
324
|
+
return `${forcedStyles}${modified}`;
|
|
325
|
+
}
|
|
326
|
+
return `<base href="${baseHref}">${forcedStyles}${modified}`;
|
|
322
327
|
}
|
|
323
328
|
|
|
324
329
|
function writeToFrame(html) {
|
|
@@ -496,4 +501,4 @@ var a0_0x27b97e=a0_0x5104;function a0_0x5104(_0x5305b5,_0x21c62f){_0x5305b5=_0x5
|
|
|
496
501
|
<br>
|
|
497
502
|
<br>
|
|
498
503
|
</body>
|
|
499
|
-
</html>
|
|
504
|
+
</html>
|