mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 16:43:26 +02:00
Merge pull request #186 from openstf/fix-184
Fix https://github.com/openstf/stf/issues/184
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})()
|
||||
|
||||
Reference in New Issue
Block a user