diff --git a/res/app/components/stf/screen/screen-directive.js b/res/app/components/stf/screen/screen-directive.js index 9378ccfc..47e0f296 100644 --- a/res/app/components/stf/screen/screen-directive.js +++ b/res/app/components/stf/screen/screen-directive.js @@ -383,7 +383,6 @@ module.exports = function DeviceScreenDirective( 'letterboxed', parentAspect < canvasAspect) } - $window.addEventListener('beforeunload', stop, false) $window.addEventListener('resize', resizeListener, false) scope.$on('fa-pane-resize', resizeListener) @@ -391,7 +390,6 @@ module.exports = function DeviceScreenDirective( scope.$on('$destroy', function() { stop() - $window.removeEventListener('beforeunload', stop, false) $window.removeEventListener('resize', resizeListener, false) }) })()