diff --git a/src/modules/enhancedPOI/main.ts b/src/modules/enhancedPOI/main.ts index 8c636da58a..55e0ae7cd6 100644 --- a/src/modules/enhancedPOI/main.ts +++ b/src/modules/enhancedPOI/main.ts @@ -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;}`; @@ -168,9 +168,7 @@ export default (async ({ LSSM, MODULE_ID, $m, getSetting, setSetting }) => { } if ( isPOIWindow && - document.querySelector( - `#${poiSettingsWrapperId}` - ) + document.getElementById(poiSettingsWrapperId) as HTMLDivElement ) return; isPOIWindow = true;