Fix not setting property on originalOnChunksLoaded

This commit is contained in:
Nuckyz 2024-05-22 05:11:09 -03:00
parent f469060ccf
commit f686cba398
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -99,6 +99,16 @@ Object.defineProperty(Function.prototype, "O", {
};
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", {