From 8a2b6fcb0adf81c9a01f4164a73fd0ccf5c47722 Mon Sep 17 00:00:00 2001 From: Kasen IO Date: Wed, 10 Jun 2020 19:18:25 -0400 Subject: [PATCH] Convert == to === in various places. --- scripts/communityScripts/explore/explore.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/communityScripts/explore/explore.js b/scripts/communityScripts/explore/explore.js index 3f7df0d0d6..74158580ec 100644 --- a/scripts/communityScripts/explore/explore.js +++ b/scripts/communityScripts/explore/explore.js @@ -48,7 +48,7 @@ function onWebEventReceived(event) { messageData = JSON.parse(event); - if (messageData.action == "requestAddressList") { + if (messageData.action === "requestAddressList") { goToAddresses = Settings.getValue("goToDecentral", ""); for (var i = 0; i < goToAddresses.length; i++) { @@ -80,19 +80,19 @@ tablet.emitScriptEvent(JSON.stringify(readyEvent)); - } else if (messageData.action == "goToUrl") { + } else if (messageData.action === "goToUrl") { Window.location = messageData.visit; - } else if (messageData.action == "navigateBack") { + } else if (messageData.action === "navigateBack") { location.goBack(); - } else if (messageData.action == "navigateHome") { + } else if (messageData.action === "navigateHome") { if (LocationBookmarks.getHomeLocationAddress()) { location.handleLookupString(LocationBookmarks.getHomeLocationAddress()); } else { location.goToLocalSandbox(); } - } else if (messageData.action == "navigateForward") { + } else if (messageData.action === "navigateForward") { location.goForward(); - } else if (messageData.action == "addLocation") { + } else if (messageData.action === "addLocation") { var locationBoxUserData = { owner: messageData.owner, @@ -118,7 +118,7 @@ collisionless: true, grabbable: false }); - } else if (messageData.action == "retrievePortInformation") { + } else if (messageData.action === "retrievePortInformation") { var readyEvent = { "action": "retrievePortInformationResponse", "goToAddresses": goToAddresses