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:
parent
1e0a145490
commit
6b67d66a93
22 changed files with 157 additions and 89 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue