Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultWindowService

Hierarchy

Implements

Index

Properties

Protected Readonly contributions

Protected Readonly corePreferences

corePreferences: CorePreferences

Protected frontendApplication

frontendApplication: FrontendApplication

Protected onUnloadEmitter

onUnloadEmitter: Emitter<void> = new Emitter<void>()

Accessors

onUnload

  • get onUnload(): Event<void>

Methods

canUnload

  • canUnload(): boolean

onStart

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