Skip to content

Commit

Permalink
Undo overwritten previous fixes to type checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasen IO committed Mar 12, 2020
1 parent 4eea498 commit bb3da99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions scripts/system/more/app-more.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


function clicked() {
if (Appstatus == true) {
if (Appstatus) {
tablet.webEventReceived.disconnect(onMoreAppWebEventReceived);
tablet.gotoHomeScreen();
Appstatus = false;
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions scripts/system/more/more.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<button class='uninstall' onclick='uninstall(" + '"' + item.url + '"' + ", " + '"' + item.id + '"' + ");'>Uninstall</button>";
} else {
Expand Down Expand Up @@ -198,7 +198,7 @@ <h1 class="mainTitle">Add more functionalities...</h1>

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]);
Expand Down

0 comments on commit bb3da99

Please sign in to comment.