mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
fix data url workers
This commit is contained in:
parent
6ea474c3d0
commit
ec0fb8b70a
5 changed files with 75 additions and 43 deletions
|
@ -1,4 +1,4 @@
|
|||
import { encodeUrl, rewriteHeaders } from "../../../shared";
|
||||
import { decodeUrl, encodeUrl, rewriteHeaders } from "../../../shared";
|
||||
|
||||
export default function (client, self) {
|
||||
client.Proxy("XMLHttpRequest.prototype.open", {
|
||||
|
@ -15,4 +15,10 @@ export default function (client, self) {
|
|||
ctx.args = Object.entries(headerObject)[0];
|
||||
},
|
||||
});
|
||||
|
||||
client.Trap("XMLHttpRequest.prototype.responseURL", {
|
||||
get(ctx) {
|
||||
return decodeUrl(ctx.get());
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue