• Setup a callback to be fired on the window's beforeunload event.

    Parameters

    • callback: ((event: BeforeUnloadEvent) => any)
        • (event): any
        • Parameters

          • event: BeforeUnloadEvent

          Returns any

    • Optionaloptions: {
          capture?: boolean;
      }
      • Optionalcapture?: boolean

    Returns void