Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultWindowService

Hierarchy

Implements

Index

Constructors

Properties

allowVetoes: boolean = true
corePreferences: CorePreferences
frontendApplication: FrontendApplication
onUnloadEmitter: Emitter<void> = ...

Accessors

  • get onUnload(): Event<void>

Methods

  • handleBeforeUnloadEvent(event: BeforeUnloadEvent): string | void
  • isSafeToShutDown(stopReason: StopReason): Promise<boolean>
  • openNewDefaultWindow(): void
  • openNewWindow(url: string): undefined
  • 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

  • registerUnloadListeners(): void
  • reload(): void
  • setSafeToShutDown(): void