This commit is contained in:
Dmitry Vasilev
2022-12-23 03:34:09 +08:00
parent 5be750b424
commit 8d4803594b
3 changed files with 5 additions and 4 deletions

View File

@@ -5,9 +5,9 @@ export const patch_promise = window => {
return
}
const _then = Promise.prototype.then
const _then = window.Promise.prototype.then
Promise.prototype.then = function then(on_resolve, on_reject) {
window.Promise.prototype.then = function then(on_resolve, on_reject) {
let children = window.get_children()
if(children == null) {
children = []