Skip to content

Commit

Permalink
🚧[redesign/profile] rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
Suchty112 committed Oct 16, 2024
1 parent aaf1d13 commit b60a32c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/redesign/parsers/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default <RedesignParser<ProfileWindow>>(({ LSSM, doc, href = '' }) => {
})),
has_map: !!doc.querySelector<HTMLDivElement>('#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',
Expand All @@ -139,7 +139,7 @@ export default <RedesignParser<ProfileWindow>>(({ 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)
);

Expand Down

0 comments on commit b60a32c

Please sign in to comment.