Untitled

mail@pastecode.io avatar
unknown
plain_text
24 days ago
439 B
6
Indexable
Never
   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 || [])
Leave a Comment