mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(rest) sendRequest: var -> const
This commit is contained in:
parent
e547187490
commit
ed5aeff441
1 changed files with 5 additions and 5 deletions
|
|
@ -172,17 +172,17 @@ function RESTful() {
|
|||
};
|
||||
|
||||
function sendRequest(params) {
|
||||
var p = params,
|
||||
prefixUrl = CloudCmd.PREFIX_URL;
|
||||
const p = params;
|
||||
const prefixUrl = CloudCmd.PREFIX_URL;
|
||||
|
||||
p.url = prefixUrl + p.url;
|
||||
p.url = encodeURI(p.url);
|
||||
p.url = prefixUrl + p.url;
|
||||
p.url = encodeURI(p.url);
|
||||
|
||||
/*
|
||||
* if we send ajax request -
|
||||
* no need in hash so we escape #
|
||||
*/
|
||||
p.url = p.url.replace('#', '%23');
|
||||
p.url = p.url.replace('#', '%23');
|
||||
|
||||
load.ajax({
|
||||
method : p.method,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue