Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-02-04 20:15:33 +01:00
parent a0977ff96c
commit 860e8ede87
1 changed files with 0 additions and 1 deletions

View File

@ -2622,7 +2622,6 @@ module.exports = (_ => {
BDFDB.ReactUtils.forceUpdate = function (...instances) {
for (let ins of instances.flat(10).filter(n => n)) if (ins.updater && typeof ins.updater.isMounted == "function" && ins.updater.isMounted(ins)) ins.forceUpdate();
};
/* BROKEN ON CANARY */
BDFDB.ReactUtils.getInstance = function (node) {
if (!BDFDB.ObjectUtils.is(node)) return null;
return node[Object.keys(node).find(key => key.startsWith("__reactInternalInstance") || key.startsWith("__reactFiber"))];