Skip to content

Commit

Permalink
use important
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoNishi committed May 27, 2024
1 parent f761119 commit c9e75a0
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 @@ -738,7 +738,8 @@
if (!elem) return;
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.display = topBarVisible ? 'none' : 'flex';
elem.style.setProperty('display', topBarVisible ? 'none' : 'flex', 'important');
topBarVisible = !topBarVisible;
};
</script>
Expand Down

0 comments on commit c9e75a0

Please sign in to comment.