Match-id-fad6e2255ca28f9b800944e58c8cde28a09b60e8

This commit is contained in:
* 2023-02-02 11:11:32 +08:00
commit d7de35adbe
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ function makeProxySnapshot(obj) {
export const devtools = {
// returns vNode id from horizon devtools
getVNodeId: vNode => {
if (!isPanelActive()) return;
if (!isPanelActive() || !window['__HORIZON_DEV_HOOK__'].getVnodeId) return;
window['__HORIZON_DEV_HOOK__'].send(); // update list first
return window['__HORIZON_DEV_HOOK__'].getVnodeId(vNode);
},