Fix not setting property on originalOnChunksLoaded
This commit is contained in:
parent
f469060ccf
commit
f686cba398
1 changed files with 10 additions and 0 deletions
|
@ -99,6 +99,16 @@ Object.defineProperty(Function.prototype, "O", {
|
||||||
};
|
};
|
||||||
|
|
||||||
onChunksLoaded.toString = originalOnChunksLoaded.toString.bind(originalOnChunksLoaded);
|
onChunksLoaded.toString = originalOnChunksLoaded.toString.bind(originalOnChunksLoaded);
|
||||||
|
|
||||||
|
// Returns whether a chunk has been loaded
|
||||||
|
Object.defineProperty(onChunksLoaded, "j", {
|
||||||
|
set(v) {
|
||||||
|
delete onChunksLoaded.j;
|
||||||
|
onChunksLoaded.j = v;
|
||||||
|
originalOnChunksLoaded.j = v;
|
||||||
|
},
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.defineProperty(this, "O", {
|
Object.defineProperty(this, "O", {
|
||||||
|
|
Loading…
Reference in a new issue