mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 23:30:00 -04:00
swruntime: implement fetch event
This commit is contained in:
parent
14a0305bdb
commit
15bc9598c9
9 changed files with 273 additions and 31 deletions
|
@ -46,6 +46,17 @@ export class ScramjetClient {
|
|||
windowProxy: any;
|
||||
locationProxy: any;
|
||||
|
||||
eventcallbacks: WeakMap<
|
||||
any,
|
||||
[
|
||||
{
|
||||
event: string;
|
||||
originalCallback: AnyFunction;
|
||||
proxiedCallback: AnyFunction;
|
||||
},
|
||||
]
|
||||
> = new WeakMap();
|
||||
|
||||
constructor(public global: typeof globalThis) {
|
||||
if ("document" in self) {
|
||||
this.documentProxy = createDocumentProxy(this, global);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue