replace let for const for variables non reassigned

This commit is contained in:
DESKTOP-FMM8UI0\CLV 2021-03-23 17:15:22 +01:00
parent 77e768e5f7
commit e05c25a857

View File

@ -707,7 +707,7 @@ export class GameScene extends ResizableScene implements CenterListener {
>
${escapedMessage}
</div> </div>`;
let buttonContainer = `<div class="buttonContainer"</div>`;
const buttonContainer = `<div class="buttonContainer"</div>`;
html += buttonContainer;
let id = 0;
for (const button of openPopupEvent.buttons) {
@ -717,7 +717,7 @@ ${escapedMessage}
const domElement = this.add.dom(objectLayerSquare.x + objectLayerSquare.width/2 ,
objectLayerSquare.y + objectLayerSquare.height/2).createFromHTML(html);
let container : HTMLDivElement = domElement.getChildByID("container") as HTMLDivElement;
const container : HTMLDivElement = domElement.getChildByID("container") as HTMLDivElement;
container.style.width = objectLayerSquare.width + "px";
domElement.scale = 0;
domElement.setClassName('popUpElement');