add https warning

This commit is contained in:
2025-05-10 15:49:32 +02:00
parent 19ffd6515d
commit 3d554e307f

View File

@@ -33,6 +33,13 @@ import { PlayerSelector } from './player-selector'
const obs = new OBSController()
export function ObsControlPanelClient() {
useEffect(() => {
if (window.location.protocol === 'https:') {
toast.error('OBS controls require HTTP', {
description: 'Please use http:// version of the site for OBS controls',
})
}
}, [])
const [isConnected, setIsConnected] = useState(false)
const players = api.leaderboard.get_leaderboard.useQuery({