mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
fix for the innerHTML getter, spotify works now.
This commit is contained in:
parent
47cdbda5bf
commit
8bd099e27a
1 changed files with 11 additions and 6 deletions
|
@ -213,12 +213,17 @@ export default function (client: ScramjetClient, self: typeof window) {
|
|||
},
|
||||
get(ctx) {
|
||||
if (ctx.this instanceof self.HTMLScriptElement) {
|
||||
return atob(
|
||||
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);
|
||||
}
|
||||
|
||||
return ctx.get();
|
||||
}
|
||||
if (ctx.this instanceof self.HTMLStyleElement) {
|
||||
return ctx.get();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue