Update ajax setup function to conform with code style
Change-Id: I3b5ddb81b42ab914319438e2768863c72b376092
This commit is contained in:
parent
abd5b56d43
commit
303b7386ce
@ -3,8 +3,7 @@ var util = require('./util.js');
|
||||
|
||||
// Base64 username:password on client-side, and append into request header
|
||||
$.ajaxSetup({
|
||||
beforeSend: function (xhr)
|
||||
{
|
||||
beforeSend: function(xhr) {
|
||||
xhr.setRequestHeader('Authorization',
|
||||
'Basic ' + btoa(config.username + ':' + config.password));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user