mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
parent
997b20a975
commit
db54dca694
File diff suppressed because one or more lines are too long
@ -25,6 +25,10 @@ syncthing.controller('EventCtrl', function ($scope, $http) {
|
||||
var online = false;
|
||||
var lastID = 0;
|
||||
|
||||
$(window).bind('beforeunload', function() {
|
||||
online = false;
|
||||
});
|
||||
|
||||
var successFn = function (data) {
|
||||
if (!online) {
|
||||
$scope.$emit('UIOnline');
|
||||
|
Loading…
Reference in New Issue
Block a user