From 752a2e179ccca134d25aa4c768de286f497cf722 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Thu, 25 Jul 2024 12:06:15 +0700 Subject: [PATCH] chore(web): Revert "fix(web): adds newly-needed null guards due to new pattern" This reverts commit 786c48074249dd457145cc4ed670ee8e8c0c4804. --- web/src/engine/osk/src/views/floatingOskView.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/web/src/engine/osk/src/views/floatingOskView.ts b/web/src/engine/osk/src/views/floatingOskView.ts index fb172b5f649..44c18298b02 100644 --- a/web/src/engine/osk/src/views/floatingOskView.ts +++ b/web/src/engine/osk/src/views/floatingOskView.ts @@ -31,7 +31,7 @@ export default class FloatingOSKView extends OSKView { dfltX: string; dfltY: string; - private layoutSerializer = new FloatingOSKCookieSerializer(); + layoutSerializer = new FloatingOSKCookieSerializer(); private titleBar: TitleBar; private resizeBar: ResizeBar; @@ -233,15 +233,6 @@ export default class FloatingOSKView extends OSKView { * @return {boolean} */ private loadPersistedLayout(): void { - /* - If a keyboard is available during OSK construction, it is possible - for this field to be `undefined`. `loadPersistedLayout` will be called - later in construction, so it's safe to skip. - */ - if(!this.layoutSerializer) { - return; - } - let c = this.layoutSerializer.loadWithDefaults({ visible: 1, userSet: 0,