diff options
Diffstat (limited to 'app/js')
| -rw-r--r-- | app/js/services.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/js/services.js b/app/js/services.js index 1b1882e..02d8a8b 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -5,19 +5,19 @@ $provide.factory('connection', ['$log', function($log) { function connect_callback(status){ if ( status == Strophe.Status.CONNECTING ) { - $log('Strophe is connecting.'); - } else if ( status == Strophe.Status.CONNFAIL ) { - $log('Strophe failed to connect.'); - } else if ( status == Strophe.Status.DISCONNECTING ) { - $log('Strophe is disconnecting.'); + $log('Strophe is connecting.'); + } else if ( status == Strophe.Status.CONNFAIL ) { + $log('Strophe failed to connect.'); + } else if ( status == Strophe.Status.DISCONNECTING ) { + $log('Strophe is disconnecting.'); } else if ( status == Strophe.Status.DISCONNECTED ) { $dev.log('Strophe is disconnected.'); } else if ( status == Strophe.Status.CONNECTED ) { $log('Strophe is connected.'); } }; - var connection = new Strophe.Connection(BOSH_SERVICE); + var connection = new Strophe.Connection(BOSH_SERVICE); connection.connect(NAME, PASSWORD, connect_callback); - return connection; - }]); + return connection; + }]); });
\ No newline at end of file |
