Skip to content

Commit

Permalink
chore(web): Revert "fix(web): adds newly-needed null guards due to ne…
Browse files Browse the repository at this point in the history
…w pattern"

This reverts commit 786c480.
  • Loading branch information
jahorton authored and mcdurdin committed Jul 26, 2024
1 parent f9d0307 commit 752a2e1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions web/src/engine/osk/src/views/floatingOskView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 752a2e1

Please sign in to comment.