diff --git a/more/app-more.js b/more/app-more.js index 7c1b1f1..6c9be3c 100644 --- a/more/app-more.js +++ b/more/app-more.js @@ -34,7 +34,7 @@ function clicked() { - if (Appstatus == true) { + if (Appstatus) { tablet.webEventReceived.disconnect(onMoreAppWebEventReceived); tablet.gotoHomeScreen(); Appstatus = false; @@ -67,7 +67,7 @@ if (eventzget.action === "installScript") { - if (lastProcessing.action == eventzget.action && lastProcessing.script == eventzget.script) { + if (lastProcessing.action === eventzget.action && lastProcessing.script === eventzget.script) { return; } else { ScriptDiscoveryService.loadOneScript(eventzget.script); @@ -83,7 +83,7 @@ if (eventzget.action === "uninstallScript") { - if (lastProcessing.action == eventzget.action && lastProcessing.script == eventzget.script) { + if (lastProcessing.action === eventzget.action && lastProcessing.script === eventzget.script) { return; } else { ScriptDiscoveryService.stopScript(eventzget.script, false); @@ -107,7 +107,7 @@ function onScreenChanged(type, url) { - if (type == "Web" && url.indexOf(APP_URL) != -1) { + if (type === "Web" && url.indexOf(APP_URL) !== -1) { //Active //print("MORE... ACTIVE"); Appstatus = true; diff --git a/more/more.html b/more/more.html index 0dec82b..7e9fddb 100644 --- a/more/more.html +++ b/more/more.html @@ -94,7 +94,7 @@ //update the buttons buttonList.forEach(function(item){ var btn = ""; - if (message.indexOf(item.url) != -1) { + if (message.indexOf(item.url) !== -1) { //Means already running btn = ""; } else { @@ -198,7 +198,7 @@ for (index = 0; index < metadata.applications.length; index++) { lowItem = metadata.applications[index].name.toLowerCase(); - if (lowItem.indexOf(search.toLowerCase()) != -1 && metadata.applications[index].isActive == true) { + if (lowItem.indexOf(search.toLowerCase()) !== -1 && metadata.applications[index].isActive == true) { counterDir = counterDir + 1; if ((counterDir >= offset) && (counterDir < (offset + perpage))) { DisplayApp(metadata.applications[index]);