mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Added translate to everything.
Added new version update modal.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user