How to use the screenfull/dist/screenfull.js.exit function in screenfull

To help you get started, we’ve selected a few screenfull examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github opf / openproject / frontend / app / components / wp-buttons / wp-zen-mode-toggle-button / wp-zen-mode-toggle-button.component.ts View on Github external
private deactivateZenMode():void {
    WorkPackageZenModeButtonComponent.inZenMode = false;
    angular.element('body').removeClass('zen-mode');
    this.disabled = false;
    if (screenfull.enabled && screenfull.isFullscreen) {
      screenfull.exit();
    }
  }