From 59aa3278dbf3b173a265ded2769328c262680882 Mon Sep 17 00:00:00 2001 From: Awawa Date: Tue, 21 Feb 2023 18:17:04 +0100 Subject: [PATCH] Fix chrome/edge fullscreen detection --- assets/webconfig/js/grabber_calibration.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/webconfig/js/grabber_calibration.js b/assets/webconfig/js/grabber_calibration.js index a44125422..4a84b49c9 100644 --- a/assets/webconfig/js/grabber_calibration.js +++ b/assets/webconfig/js/grabber_calibration.js @@ -158,8 +158,8 @@ $(document).ready( function(){ } function startCalibration() - { - if (!window.screenTop && !window.screenY) + { + if (matchMedia('(display-mode: fullscreen)').matches) { canvas.classList.add("fullscreen-canvas"); currentColor = new ColorRgb(0,0,0); @@ -263,4 +263,4 @@ $(document).ready( function(){ } finish = (checksum > 20) ? true : false; } -}); \ No newline at end of file +});