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