save code
This commit is contained in:
parent
59f46fc0d4
commit
5bc114ea83
@ -88,10 +88,12 @@ export class ClawComputerPanel extends LitElement {
|
||||
return;
|
||||
}
|
||||
|
||||
const screen = this.shadowRoot.querySelector(".screen");
|
||||
if (!screen) {
|
||||
const screenElement = this.shadowRoot.querySelector(".screen");
|
||||
if (!screenElement) {
|
||||
return;
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||
const screen = screenElement as HTMLElement;
|
||||
|
||||
const hostHeight = this.offsetHeight;
|
||||
const screenHeight = screen.offsetHeight;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user