Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
screenfull.onchange(function() {
// This event might get triggered several times for once leaving
// fullscreen mode.
if (!screenfull.isFullscreen) {
self.deactivateZenMode();
}
});
}
private deactivateZenMode():void {
WorkPackageZenModeButtonComponent.inZenMode = false;
angular.element('body').removeClass('zen-mode');
this.disabled = false;
if (screenfull.enabled && screenfull.isFullscreen) {
screenfull.exit();
}
}