Take full screen if width and height are not supplied
This commit is contained in:
1 file changed
+2
-2
@@ -90,6 +90,6 @@ async function getRegistration(name){
|
|||||||
const args = new URLSearchParams(location.search);
|
const args = new URLSearchParams(location.search);
|
||||||
init(
|
init(
|
||||||
args.get("name"),
|
args.get("name"),
|
||||||
parseInt(args.get("width")),
|
parseInt(args.get("width") || window.innerWidth),
|
||||||
parseInt(args.get("height"))
|
parseInt(args.get("height") || window.innerHeight)
|
||||||
)
|
)
|
||||||
Reference in new issue
Block a user