mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
return fake serviceworkerregistration
This commit is contained in:
parent
91dc2f96cd
commit
f2fe8c1d5e
5 changed files with 87 additions and 2 deletions
|
@ -45,6 +45,14 @@ export const windowProxy = new Proxy(self, {
|
|||
|
||||
return Reflect.set(target, prop, newValue);
|
||||
},
|
||||
defineProperty(target, property, attributes) {
|
||||
if (!attributes.get && !attributes.set) {
|
||||
attributes.writable = true;
|
||||
}
|
||||
attributes.configurable = true;
|
||||
|
||||
return Reflect.defineProperty(target, property, attributes);
|
||||
},
|
||||
});
|
||||
|
||||
export const documentProxy = new Proxy(self.document || {}, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue