mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 00:05:15 +02:00
Stop logging on window unload, not on scope destroy.
This commit is contained in:
@@ -22,9 +22,9 @@ module.exports = function LogsCtrl($scope, LogcatService) {
|
||||
}
|
||||
})
|
||||
|
||||
$scope.$on('$destroy', function () {
|
||||
// $scope.control.stopLogcat()
|
||||
})
|
||||
window.onbeforeunload = function () {
|
||||
$scope.control.stopLogcat()
|
||||
}
|
||||
|
||||
$scope.clear = function () {
|
||||
LogcatService.clear()
|
||||
|
||||
Reference in New Issue
Block a user