Skip to content

Commit

Permalink
🐛️[all] even more fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr4zyc4k3 committed Aug 27, 2024
1 parent 8908306 commit ccf2582
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/enhancedPOI/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default (async ({ LSSM, MODULE_ID, $m, getSetting, setSetting }) => {
'poi-hider-style',
true
);
document.getElementById(`${extraStyleId}`)?.remove();
document.getElementById(extraStyleId)?.remove();
const style = document.createElement('style');
style.id = extraStyleId;
style.textContent = `${selector} {display: block !important;}`;
Expand Down Expand Up @@ -168,9 +168,7 @@ export default (async ({ LSSM, MODULE_ID, $m, getSetting, setSetting }) => {
}
if (
isPOIWindow &&
document.querySelector<HTMLDivElement>(
`#${poiSettingsWrapperId}`
)
document.getElementById(poiSettingsWrapperId) as HTMLDivElement
)
return;
isPOIWindow = true;
Expand Down

0 comments on commit ccf2582

Please sign in to comment.