Take full screen if width and height are not supplied

This commit is contained in:
EpicKiwi 2023-09-15 12:02:27 +02:00
parent 050f887398
commit 74e8731fa4
Signed by: epickiwi
GPG Key ID: C4B28FD2729941CE

View File

@ -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)
)