mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:36:30 +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) {
|
function onWebEventReceived(event) {
|
||||||
messageData = JSON.parse(event);
|
messageData = JSON.parse(event);
|
||||||
if (messageData.action == "requestAddressList") {
|
if (messageData.action === "requestAddressList") {
|
||||||
goToAddresses = Settings.getValue("goToDecentral", "");
|
goToAddresses = Settings.getValue("goToDecentral", "");
|
||||||
for (var i = 0; i < goToAddresses.length; i++) {
|
for (var i = 0; i < goToAddresses.length; i++) {
|
||||||
|
|
||||||
|
@ -80,19 +80,19 @@
|
||||||
|
|
||||||
tablet.emitScriptEvent(JSON.stringify(readyEvent));
|
tablet.emitScriptEvent(JSON.stringify(readyEvent));
|
||||||
|
|
||||||
} else if (messageData.action == "goToUrl") {
|
} else if (messageData.action === "goToUrl") {
|
||||||
Window.location = messageData.visit;
|
Window.location = messageData.visit;
|
||||||
} else if (messageData.action == "navigateBack") {
|
} else if (messageData.action === "navigateBack") {
|
||||||
location.goBack();
|
location.goBack();
|
||||||
} else if (messageData.action == "navigateHome") {
|
} else if (messageData.action === "navigateHome") {
|
||||||
if (LocationBookmarks.getHomeLocationAddress()) {
|
if (LocationBookmarks.getHomeLocationAddress()) {
|
||||||
location.handleLookupString(LocationBookmarks.getHomeLocationAddress());
|
location.handleLookupString(LocationBookmarks.getHomeLocationAddress());
|
||||||
} else {
|
} else {
|
||||||
location.goToLocalSandbox();
|
location.goToLocalSandbox();
|
||||||
}
|
}
|
||||||
} else if (messageData.action == "navigateForward") {
|
} else if (messageData.action === "navigateForward") {
|
||||||
location.goForward();
|
location.goForward();
|
||||||
} else if (messageData.action == "addLocation") {
|
} else if (messageData.action === "addLocation") {
|
||||||
|
|
||||||
var locationBoxUserData = {
|
var locationBoxUserData = {
|
||||||
owner: messageData.owner,
|
owner: messageData.owner,
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
collisionless: true,
|
collisionless: true,
|
||||||
grabbable: false
|
grabbable: false
|
||||||
});
|
});
|
||||||
} else if (messageData.action == "retrievePortInformation") {
|
} else if (messageData.action === "retrievePortInformation") {
|
||||||
var readyEvent = {
|
var readyEvent = {
|
||||||
"action": "retrievePortInformationResponse",
|
"action": "retrievePortInformationResponse",
|
||||||
"goToAddresses": goToAddresses
|
"goToAddresses": goToAddresses
|
||||||
|
|
Loading…
Reference in a new issue