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.");
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user