Untitled
unknown
plain_text
2 years ago
450 B
5
Indexable
const reactElement = Insider.dom('.vtex-product-context-provider script[type="application/ld+json"]')
.nodes[0] || {};
const reactSelector = (Object.keys(reactElement) || []).filter((props) => {
return props.indexOf('__reactFiber') !== -1;
})[0] || '';
(((((reactElement[reactSelector] || {}).return || {}).pendingProps || {}).product || {})
.categoryTree || [])Editor is loading...
Leave a Comment