check empty params for get

This commit is contained in:
Mo Bitar
2017-02-26 11:09:08 -06:00
parent 86019aaa8a
commit 1adfd5146d
2 changed files with 1 additions and 2 deletions

View File

@@ -30,7 +30,6 @@ class GlobalExtensionsMenu {
alert("Unable to register this extension. Make sure the link is valid and try again."); alert("Unable to register this extension. Make sure the link is valid and try again.");
} }
} else { } else {
console.log("Added extension");
$scope.newExtensionData.url = ""; $scope.newExtensionData.url = "";
$scope.showNewExtensionForm = false; $scope.showNewExtensionForm = false;
} }

View File

@@ -45,7 +45,7 @@ class HttpManager {
} }
}.bind(this) }.bind(this)
if(verb == "get") { if(verb == "get" && Object.keys(params).length > 0) {
url = url + this.formatParams(params); url = url + this.formatParams(params);
} }