Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Hide mobile msg if disabled

Chocobozzzd2c3d88944e3
diff --git a/client/src/app/header/header.component.ts b/client/src/app/header/header.component.ts
index 4136aae7ad..d450ca09ca 100644
--- a/client/src/app/header/header.component.ts
+++ b/client/src/app/header/header.component.ts
@@ -1,5 +1,5 @@
import { CommonModule } from '@angular/common'
-import { Component, inject, LOCALE_ID, OnDestroy, OnInit, viewChild, ChangeDetectionStrategy } from '@angular/core'
+import { ChangeDetectionStrategy, Component, inject, LOCALE_ID, OnDestroy, OnInit, viewChild } from '@angular/core'
import { NavigationEnd, Router, RouterLink } from '@angular/router'
import { AuthService, AuthStatus, AuthUser, HotkeysService, MenuService, RedirectService, ScreenService, ServerService } from '@app/core'
import { NotificationDropdownComponent } from '@app/header/notification-dropdown.component'
@@ -185,13 +185,16 @@ export class HeaderComponent implements OnInit, OnDestroy {
if (!isAndroid() && !isIphone()) return
- this.mobileMsg = true
- document.documentElement.classList.add('mobile-app-msg')
-
const host = window.location.host
const intentConfig = this.htmlConfig.client.openInApp.android.intent
const iosConfig = this.htmlConfig.client.openInApp.ios
+ if (isAndroid() && intentConfig.enabled === false) return
+ if (isIphone() && iosConfig.enabled === false) return
+
+ this.mobileMsg = true
+ document.documentElement.classList.add('mobile-app-msg')
+
const getVideoId = (url: string) => {
const matches = url.match(/^\/w\/([^/?;]+)/)