Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/headless-content-unblocker/src/dom/initiators/nativeEventListener"

Index

Variables

Const OVERWRITE_PROPERTY

OVERWRITE_PROPERTY: "rcbNativeEventListener" = "rcbNativeEventListener"

Functions

applyNativeEventListenerInitiator

  • applyNativeEventListenerInitiator(element: { addEventListener: Window["addEventListener"] }, eventName: string, __namedParameters?: { onBeforeExecute: () => void }): void
  • Overwrite window.addEventListener('load') as they can not be triggered by our script blocker. This can also be used for other known events.

    Parameters

    • element: { addEventListener: Window["addEventListener"] }
      • addEventListener: Window["addEventListener"]
    • eventName: string
    • Default value __namedParameters: { onBeforeExecute: () => void } = {onBeforeExecute: undefined}
      • onBeforeExecute: () => void
          • (): void
          • Returns void

    Returns void

Generated using TypeDoc