== to ===
This commit is contained in:
@@ -60,7 +60,7 @@ export class TopBar extends Laya.Script {
|
||||
}
|
||||
|
||||
this.btn_classic.on(Laya.Event.CLICK, this, () => {
|
||||
if (this.isClassic == false) {
|
||||
if (this.isClassic === false) {
|
||||
this.onClickTab(true)
|
||||
}
|
||||
})
|
||||
@@ -88,7 +88,7 @@ export class TopBar extends Laya.Script {
|
||||
const common = evt.target.getComponent(CommonData)
|
||||
const difficulty = Laya.LocalStorage.getItem("difficulty")
|
||||
if (common.strValue != difficulty) {
|
||||
if (Laya.LocalStorage.getItem("showToggle") == "true") {
|
||||
if (Laya.LocalStorage.getItem("showToggle") === "true") {
|
||||
const title = "Start New Game"
|
||||
const content = "Current game progress will be lost"
|
||||
G_ShowCommonTips(title, content, true, (ok: boolean, toggleValue: boolean) => {
|
||||
|
||||
Reference in New Issue
Block a user