mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 13:44:12 +00:00
refactor: hide fullscreen button if not feature available
This commit is contained in:
committed by
Carlos Valente
parent
1f2706a063
commit
19d6b40bdb
@@ -23,7 +23,9 @@ export const isDev = import.meta.env.DEV;
|
||||
export const currentHostName = window.location.hostname;
|
||||
export const isLocalhost = currentHostName === 'localhost' || currentHostName === '127.0.0.1';
|
||||
export const isOntimeCloud = document.querySelector('base')?.hasAttribute('data-is-cloud')
|
||||
|
||||
export const isTouchDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
|
||||
export const supportsFullscreen = document.fullscreenEnabled;
|
||||
|
||||
// resolve entrypoint URLs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user