From b60a32c6c643cbd447eba650978c4f03fbb64242 Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 16 Oct 2024 19:00:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7[redesign/profile]=20rename=20funct?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/redesign/parsers/profile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) );