From 0159a5f3c307329db8e770d47ba3e6f105dfd872 Mon Sep 17 00:00:00 2001 From: Lars Berning <151194+laberning@users.noreply.github.com> Date: Mon, 17 Jan 2022 21:19:30 +0100 Subject: [PATCH] shows fullscreen button only on browsers that support this feature --- app/client/components/DashboardActions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/client/components/DashboardActions.js b/app/client/components/DashboardActions.js index 8848759..d97eb26 100644 --- a/app/client/components/DashboardActions.js +++ b/app/client/components/DashboardActions.js @@ -28,8 +28,9 @@ export class DashboardActions extends AppElement { renderOptionalButtons () { const buttons = [] // changing to fullscreen mode only makes sence when the app is openend in a regular - // webbrowser (kiosk and standalone mode are always in fullscreen view) - if (this.appState.appMode === 'BROWSER') { + // webbrowser (kiosk and standalone mode are always in fullscreen view) and the browser + // supports this feature + if (this.appState.appMode === 'BROWSER' && document.documentElement.requestFullscreen) { buttons.push(html`