mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 13:42:38 +02:00
Convert == to === in various places.
This commit is contained in:
parent
1d0cbe04c8
commit
8a2b6fcb0a
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue