mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 23:30:00 -04:00
chore: prettier
This commit is contained in:
parent
c4f03f5ea7
commit
0af6cceec6
1 changed files with 4 additions and 6 deletions
|
@ -213,11 +213,9 @@ export default function (client: ScramjetClient, self: typeof window) {
|
|||
},
|
||||
get(ctx) {
|
||||
if (ctx.this instanceof self.HTMLScriptElement) {
|
||||
|
||||
const scriptSource = client.natives["Element.prototype.getAttribute"].call(
|
||||
ctx.this,
|
||||
"data-scramjet-script-source-src"
|
||||
)
|
||||
const scriptSource = client.natives[
|
||||
"Element.prototype.getAttribute"
|
||||
].call(ctx.this, "data-scramjet-script-source-src");
|
||||
|
||||
if (scriptSource) {
|
||||
return atob(scriptSource);
|
||||
|
@ -252,7 +250,7 @@ export default function (client: ScramjetClient, self: typeof window) {
|
|||
false
|
||||
);
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
client.Trap("HTMLIFrameElement.prototype.contentWindow", {
|
||||
get(ctx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue