!= to !==
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user