mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 14:11:24 -03:30
Correct jshint errors
This commit is contained in:
parent
0bfe5dc6ba
commit
d766b6b029
@ -71,11 +71,11 @@ angular.module('SocketIO', ['AuthService', 'Utilities'])
|
||||
$log.debug('Socket connecting to: ' + url);
|
||||
self.scope.socket_url = url;
|
||||
handshakeData = {
|
||||
headers: {
|
||||
headers: {
|
||||
'Authorization': 'Token ' + token,
|
||||
'X-Auth-Token': 'Token ' + token
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.socket = io.connect(url, {
|
||||
// headers:
|
||||
@ -182,7 +182,7 @@ angular.module('SocketIO', ['AuthService', 'Utilities'])
|
||||
},
|
||||
disconnect: function(){
|
||||
var self = this;
|
||||
$rootScope.disconnect_timer = setInterval(function(){disconnectSocket()}, 1000);
|
||||
$rootScope.disconnect_timer = setInterval(function(){disconnectSocket();}, 1000);
|
||||
|
||||
function disconnectSocket() {
|
||||
self.socket.socket.disconnect();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user