Update 0BDFDB.plugin.js
This commit is contained in:
parent
a0977ff96c
commit
860e8ede87
|
@ -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"))];
|
||||
|
|
Loading…
Reference in New Issue