Skip to content

Commit

Permalink
Hide medium banner
Browse files Browse the repository at this point in the history
  • Loading branch information
und3fined committed Jan 1, 2022
1 parent aadd030 commit db6e15c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/App.svelte
Expand Up @@ -4,7 +4,7 @@
| File Created: 31 Dec 2021 20:33:17
| Author: und3fined (me@und3fined.com)
| -----
| Last Modified: 31 Dec 2021 21:31:07
| Last Modified: 01 Jan 2022 13:57:51
| Modified By: und3fined (me@und3fined.com)
| -----
| Copyright (c) 2021 und3fined.com
Expand All @@ -16,7 +16,15 @@
export let name;
const mediumMeterId = 'highlight-meter-';
onMount(() => {
const mediumMeterElm = document.querySelector(`div[id*='${mediumMeterId}']`)
if (mediumMeterElm && mediumMeterElm.parentElement) {
mediumMeterElm.parentElement.style.display = 'none';
}
const interval = setInterval(() => {
if (!!hasElm(memberShipId) || !!hasElm(registerWall)) {
window.location.reload();
Expand Down

0 comments on commit db6e15c

Please sign in to comment.