Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultWindowService

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected Readonly contributions

Protected Readonly corePreferences

Protected frontendApplication

frontendApplication: FrontendApplication

Protected onUnloadEmitter

onUnloadEmitter: Emitter<void> = ...

Accessors

onUnload

  • get onUnload(): Event<void>

Methods

canUnload

  • canUnload(): boolean

onStart

openNewDefaultWindow

  • openNewDefaultWindow(): void

openNewWindow

  • openNewWindow(url: string): undefined

Protected preventUnload

  • preventUnload(event: BeforeUnloadEvent): string | void
  • Notify the browser that we do not want to unload.

    Notes:

    • Shows a confirmation popup in browsers.
    • Prevents the window from closing without confirmation in electron.

    Parameters

    • event: BeforeUnloadEvent

      The beforeunload event

    Returns string | void

Protected registerUnloadListeners

  • registerUnloadListeners(): void