mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
fix: proxy Node.getRootNode
This commit is contained in:
parent
a2af4d7f3b
commit
ee85b48d33
7 changed files with 13 additions and 4 deletions
|
@ -45,7 +45,7 @@ export function rewriteHtml(
|
|||
const injected = `
|
||||
self.COOKIE = ${dump};
|
||||
self.$scramjet.config = ${JSON.stringify($scramjet.config)};
|
||||
if ("document" in self && document.currentScript) {
|
||||
if ("document" in self && document?.currentScript) {
|
||||
document.currentScript.remove();
|
||||
}
|
||||
`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue