We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9e75a0 commit 7fe0e1cCopy full SHA for 7fe0e1c
src/components/Hyperchat.svelte
@@ -739,7 +739,8 @@
739
const iframe = window.parent.document.querySelector('.ytcf-iframe') as HTMLDivElement;
740
if (!iframe || (topBarVisible && iframe.style.display != 'block')) return;
741
// elem.style.display = topBarVisible ? 'none' : 'flex';
742
- elem.style.setProperty('display', topBarVisible ? 'none' : 'flex', 'important');
+ if (topBarVisible) elem.style.setProperty('display', 'none', 'important');
743
+ else elem.style.removeProperty('display');
744
topBarVisible = !topBarVisible;
745
};
746
</script>
0 commit comments