Hide watch party button in http

This commit is contained in:
WardPearce
2026-03-04 01:12:46 +13:00
parent 0659543395
commit 164597d2e7
2 changed files with 11 additions and 5 deletions
+10 -4
View File
@@ -247,10 +247,16 @@
<Search on:searchCancelled={() => (mobileSearchShow = false)} />
</div>
{:else}
<button onclick={() => (showWatchParty = !showWatchParty)} class="circle large transparent">
<i>groups</i>
<div class="tooltip bottom">{$_('watchParty.start')}</div>
</button>
<!-- Watch parties only work in HTTPS environments -->
{#if page.url.protocol === 'https:'}
<button
onclick={() => (showWatchParty = !showWatchParty)}
class="circle large transparent"
>
<i>groups</i>
<div class="tooltip bottom">{$_('watchParty.start')}</div>
</button>
{/if}
{#if $invidiousAuthStore && !isYTBackend()}
<button
class="circle large transparent"
File diff suppressed because one or more lines are too long