chore(web): Revert "fix(web): adds newly-needed null guards due to new pattern"

This reverts commit 786c480742.
This commit is contained in:
Joshua A. Horton 2024-07-25 12:06:15 +07:00 • committed by Marc Durdin
parent f9d0307144
commit 752a2e179c

View file

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