chore: prettier

This commit is contained in:
Percs 2024-10-17 21:17:58 -05:00
parent c4f03f5ea7
commit 0af6cceec6

View file

@ -213,11 +213,9 @@ export default function (client: ScramjetClient, self: typeof window) {
}, },
get(ctx) { get(ctx) {
if (ctx.this instanceof self.HTMLScriptElement) { if (ctx.this instanceof self.HTMLScriptElement) {
const scriptSource = client.natives[
const scriptSource = client.natives["Element.prototype.getAttribute"].call( "Element.prototype.getAttribute"
ctx.this, ].call(ctx.this, "data-scramjet-script-source-src");
"data-scramjet-script-source-src"
)
if (scriptSource) { if (scriptSource) {
return atob(scriptSource); return atob(scriptSource);
@ -252,7 +250,7 @@ export default function (client: ScramjetClient, self: typeof window) {
false false
); );
}, },
}) });
client.Trap("HTMLIFrameElement.prototype.contentWindow", { client.Trap("HTMLIFrameElement.prototype.contentWindow", {
get(ctx) { get(ctx) {