diff --git a/src/modules/redesign/parsers/profile.ts b/src/modules/redesign/parsers/profile.ts index d457ca0ba0..e0d1ba548f 100644 --- a/src/modules/redesign/parsers/profile.ts +++ b/src/modules/redesign/parsers/profile.ts @@ -125,7 +125,7 @@ export default >(({ LSSM, doc, href = '' }) => { })), has_map: !!doc.querySelector('#profile_map'), buildings: Array.from(doc.scripts) - .filter(script => script.textContent?.includes('buildingMarkerAdd')) + .filter(script => script.textContent?.includes('buildingMarkerAddSingle')) .flatMap(script => { const tree = parse(script.textContent ?? '', { ecmaVersion: 'latest', @@ -139,7 +139,7 @@ export default >(({ LSSM, doc, href = '' }) => { 'expression' in node && node.expression.type === 'CallExpression' && node.expression.callee.type === 'Identifier' && - node.expression.callee.name === 'buildingMarkerAdd' && + node.expression.callee.name === 'buildingMarkerAddSingle' && markerNodes.push(node) );