check empty params for get
This commit is contained in:
@@ -30,7 +30,6 @@ class GlobalExtensionsMenu {
|
||||
alert("Unable to register this extension. Make sure the link is valid and try again.");
|
||||
}
|
||||
} else {
|
||||
console.log("Added extension");
|
||||
$scope.newExtensionData.url = "";
|
||||
$scope.showNewExtensionForm = false;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ class HttpManager {
|
||||
}
|
||||
}.bind(this)
|
||||
|
||||
if(verb == "get") {
|
||||
if(verb == "get" && Object.keys(params).length > 0) {
|
||||
url = url + this.formatParams(params);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user