Undo overwritten previous fixes to type checking.

This commit is contained in:
Kasen IO 2020-03-12 15:29:11 -04:00
parent 4eea4980fd
commit bb3da99856
2 changed files with 6 additions and 6 deletions

View file

@ -34,7 +34,7 @@
function clicked() { function clicked() {
if (Appstatus == true) { if (Appstatus) {
tablet.webEventReceived.disconnect(onMoreAppWebEventReceived); tablet.webEventReceived.disconnect(onMoreAppWebEventReceived);
tablet.gotoHomeScreen(); tablet.gotoHomeScreen();
Appstatus = false; Appstatus = false;
@ -67,7 +67,7 @@
if (eventzget.action === "installScript") { if (eventzget.action === "installScript") {
if (lastProcessing.action == eventzget.action && lastProcessing.script == eventzget.script) { if (lastProcessing.action === eventzget.action && lastProcessing.script === eventzget.script) {
return; return;
} else { } else {
ScriptDiscoveryService.loadOneScript(eventzget.script); ScriptDiscoveryService.loadOneScript(eventzget.script);
@ -83,7 +83,7 @@
if (eventzget.action === "uninstallScript") { if (eventzget.action === "uninstallScript") {
if (lastProcessing.action == eventzget.action && lastProcessing.script == eventzget.script) { if (lastProcessing.action === eventzget.action && lastProcessing.script === eventzget.script) {
return; return;
} else { } else {
ScriptDiscoveryService.stopScript(eventzget.script, false); ScriptDiscoveryService.stopScript(eventzget.script, false);
@ -107,7 +107,7 @@
function onScreenChanged(type, url) { function onScreenChanged(type, url) {
if (type == "Web" && url.indexOf(APP_URL) != -1) { if (type === "Web" && url.indexOf(APP_URL) !== -1) {
//Active //Active
//print("MORE... ACTIVE"); //print("MORE... ACTIVE");
Appstatus = true; Appstatus = true;

View file

@ -94,7 +94,7 @@
//update the buttons //update the buttons
buttonList.forEach(function(item){ buttonList.forEach(function(item){
var btn = ""; var btn = "";
if (message.indexOf(item.url) != -1) { if (message.indexOf(item.url) !== -1) {
//Means already running //Means already running
btn = "<button class='uninstall' onclick='uninstall(" + '"' + item.url + '"' + ", " + '"' + item.id + '"' + ");'>Uninstall</button>"; btn = "<button class='uninstall' onclick='uninstall(" + '"' + item.url + '"' + ", " + '"' + item.id + '"' + ");'>Uninstall</button>";
} else { } else {
@ -198,7 +198,7 @@
for (index = 0; index < metadata.applications.length; index++) { for (index = 0; index < metadata.applications.length; index++) {
lowItem = metadata.applications[index].name.toLowerCase(); 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; counterDir = counterDir + 1;
if ((counterDir >= offset) && (counterDir < (offset + perpage))) { if ((counterDir >= offset) && (counterDir < (offset + perpage))) {
DisplayApp(metadata.applications[index]); DisplayApp(metadata.applications[index]);