1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 02:09:32 +02:00

Added translate to everything.

Added new version update modal.
This commit is contained in:
Gunther Brunner 2014-05-28 15:58:18 +09:00
parent 1e0a145490
commit 6b67d66a93
22 changed files with 157 additions and 89 deletions

View file

@ -1,6 +1,6 @@
var io = require('socket.io')
module.exports = function SocketFactory($rootScope) {
module.exports = function SocketFactory($rootScope, VersionUpdateService) {
var socket = io.connect(null, {
reconnect: false
})
@ -26,6 +26,10 @@ module.exports = function SocketFactory($rootScope) {
}
}
socket.on('outdated', function () {
VersionUpdateService.open()
})
socket.on('socket.ip', function(ip) {
$rootScope.$apply(function() {
socket.ip = ip