mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 01:56:39 +02:00
Eliminate double equals
This commit is contained in:
parent
4e7b03883f
commit
276125937c
1 changed files with 8 additions and 5 deletions
|
@ -70,7 +70,7 @@ Rectangle {
|
|||
}
|
||||
|
||||
function installResourceObj(resourceObj) {
|
||||
if ("application" == resourceObj.assetType) {
|
||||
if ("application" === resourceObj.assetType) {
|
||||
Commerce.installApp(resourceObj.resource);
|
||||
}
|
||||
}
|
||||
|
@ -257,10 +257,13 @@ Rectangle {
|
|||
// Alas, there is nothing we can do about that so charge
|
||||
// ahead as though we are sure the present signal is one
|
||||
// we expect.
|
||||
if ("load file" === currentAction) {
|
||||
Window.browseChanged.disconnect(onResourceSelected);
|
||||
} else if ("load url" == currentAction) {
|
||||
Window.promptTextChanged.disconnect(onResourceSelected);
|
||||
switch(currentAction) {
|
||||
case "load file":
|
||||
Window.browseChanged.disconnect(onResourceSelected);
|
||||
break
|
||||
case "load url":
|
||||
Window.promptTextChanged.disconnect(onResourceSelected);
|
||||
break;
|
||||
}
|
||||
if (resource) {
|
||||
var resourceObj = buildResourceObj(resource);
|
||||
|
|
Loading…
Reference in a new issue