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} ${escapedMessage}
</div> </div>`; </div> </div>`;
let buttonContainer = `<div class="buttonContainer"</div>`; const buttonContainer = `<div class="buttonContainer"</div>`;
html += buttonContainer; html += buttonContainer;
let id = 0; let id = 0;
for (const button of openPopupEvent.buttons) { for (const button of openPopupEvent.buttons) {
@ -717,7 +717,7 @@ ${escapedMessage}
const domElement = this.add.dom(objectLayerSquare.x + objectLayerSquare.width/2 , const domElement = this.add.dom(objectLayerSquare.x + objectLayerSquare.width/2 ,
objectLayerSquare.y + objectLayerSquare.height/2).createFromHTML(html); 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"; container.style.width = objectLayerSquare.width + "px";
domElement.scale = 0; domElement.scale = 0;
domElement.setClassName('popUpElement'); domElement.setClassName('popUpElement');