change(player): fix screen change

This commit is contained in:
sylenien 2022-11-29 17:01:27 +01:00 committed by Delirium
parent f0ae152e00
commit ed857861a9

View file

@ -54,9 +54,8 @@ export default class Screen {
readonly cursor: Cursor
private readonly iframe: HTMLIFrameElement;
protected readonly screen: HTMLDivElement;
protected readonly controlButton: HTMLDivElement;
protected parentElement: HTMLElement | null = null;
private readonly screen: HTMLDivElement;
private parentElement: HTMLElement | null = null;
constructor() {
const iframe = document.createElement('iframe');
@ -102,6 +101,10 @@ export default class Screen {
})
}
getParentElement(): HTMLElement | null {
return this.parentElement
}
setBorderStyle(style: { border: string }) {
return Object.assign(this.screen.style, style)
}