refactor: hide fullscreen button if not feature available

This commit is contained in:
Carlos Valente
2025-11-12 06:04:48 +01:00
committed by Carlos Valente
parent 1f2706a063
commit 19d6b40bdb
2 changed files with 9 additions and 5 deletions
+2
View File
@@ -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