mirror of
https://github.com/ershisan99/www.git
synced 2025-12-18 12:34:17 +00:00
add https warning
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user