!= to !==

This commit is contained in:
2025-05-28 20:12:56 +08:00
parent 34eec38036
commit 8da20ab53e
6 changed files with 11 additions and 11 deletions

View File

@@ -87,7 +87,7 @@ export class TopBar extends Laya.Script {
obj.on(Laya.Event.CLICK, this, (evt: Laya.Event) => {
const common = evt.target.getComponent(CommonData)
const difficulty = Laya.LocalStorage.getItem("difficulty")
if (common.strValue != difficulty) {
if (common.strValue !== difficulty) {
if (Laya.LocalStorage.getItem("showToggle") === "true") {
const title = "Start New Game"
const content = "Current game progress will be lost"