From eb7ad5f1f5a3efe4e9719a43411c81088a5deb37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Tue, 15 Nov 2022 11:07:25 +0000 Subject: [PATCH] docs: small fixes --- README.md | 3 ++- frontends/web/index.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2fc10a88..47035548 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,9 @@ You can use some GET parameters to control the initial behaviour of the emulator | Parameter | Type | Description | | ------------ | ------- | ---------------------------------------------------------------------------------------------- | | `rom_url` | String | The URL from which the initial ROM is going to be loaded, should support CORS. | -| `url` | String | The same as `url`. | +| `url` | String | The same as `rom_url`. | | `fullscreen` | Boolean | If the emulator should start in fullscreen mode. | +| `fs` | Boolean | The same as `fullscreen`. | | `debug` | Boolean | If the "debugger" should start visible. | | `keyboard` | Boolean | If the on screen keyboard should start visible. | | `palette` | String | The name of the palette to be set at startup( eg: `christmas`, `hogwards`, `mariobros`, etc.). | diff --git a/frontends/web/index.ts b/frontends/web/index.ts index 2badc5de..25ac5e1c 100644 --- a/frontends/web/index.ts +++ b/frontends/web/index.ts @@ -17,7 +17,7 @@ const BACKGROUNDS = [ const params = new URLSearchParams(window.location.search); const romUrl = params.get("rom_url") ?? params.get("url") ?? undefined; const fullscreen = ["1", "true", "True"].includes( - params.get("fullscreen") ?? "" + params.get("fullscreen") ?? params.get("fs") ?? "" ); const debug = ["1", "true", "True"].includes(params.get("debug") ?? ""); const keyboard = ["1", "true", "True"].includes( -- GitLab