From 74e8731fa42eb04a8293174bcb0264a630a37c93 Mon Sep 17 00:00:00 2001 From: EpicKiwi Date: Fri, 15 Sep 2023 12:02:27 +0200 Subject: [PATCH] Take full screen if width and height are not supplied --- static/js/display.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/display.js b/static/js/display.js index 756e33f..02f5ed7 100644 --- a/static/js/display.js +++ b/static/js/display.js @@ -90,6 +90,6 @@ async function getRegistration(name){ const args = new URLSearchParams(location.search); init( args.get("name"), - parseInt(args.get("width")), - parseInt(args.get("height")) + parseInt(args.get("width") || window.innerWidth), + parseInt(args.get("height") || window.innerHeight) ) \ No newline at end of file