mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 07:30:02 -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) {
|
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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue