From e05c25a85766e8993973a44559a00f69204f99b7 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FMM8UI0\\CLV" Date: Tue, 23 Mar 2021 17:15:22 +0100 Subject: [PATCH] replace let for const for variables non reassigned --- front/src/Phaser/Game/GameScene.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index d3c2220c..2a2d575f 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -707,7 +707,7 @@ export class GameScene extends ResizableScene implements CenterListener { > ${escapedMessage} `; - let buttonContainer = `
`; + const buttonContainer = `
`; 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');