Skip to content

Commit

Permalink
remove prop instead
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoNishi committed May 27, 2024
1 parent c9e75a0 commit 7fe0e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Hyperchat.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,8 @@
const iframe = window.parent.document.querySelector('.ytcf-iframe') as HTMLDivElement;
if (!iframe || (topBarVisible && iframe.style.display != 'block')) return;
// elem.style.display = topBarVisible ? 'none' : 'flex';
elem.style.setProperty('display', topBarVisible ? 'none' : 'flex', 'important');
if (topBarVisible) elem.style.setProperty('display', 'none', 'important');
else elem.style.removeProperty('display');
topBarVisible = !topBarVisible;
};
</script>
Expand Down

0 comments on commit 7fe0e1c

Please sign in to comment.