Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "core/dialog-opener"

Index

Classes

Interfaces

Variables

Functions

Variables

Const URL_PATTERN

URL_PATTERN: RegExp = /^[A-Za-z\+\.\-]+\:\/\/[^/]+/

Functions

getOrigin

  • getOrigin(url: string, relativeTo?: undefined | string): string
  • Parameters

    • url: string
    • Optional relativeTo: undefined | string

    Returns string

onListen

  • onListen(dialog: Dialog, myMatchlist: MatchOption[], trigger: MessageEvent, trusted: boolean, resolve: function, reject: function): void
  • Handle a listen message from a service

    Parameters

    • dialog: Dialog

      The open dialog

    • myMatchlist: MatchOption[]

      The matchlist we are sending

    • trigger: MessageEvent

      The event the listen came with

    • trusted: boolean

      True if the origin is trusted and should get launch information

    • resolve: function

      Function to resolve the match promise with

    • reject: function

      Function to reject the match promise with

        • (reason: any): void
        • Parameters

          • reason: any

          Returns void

    Returns void

Generated using TypeDoc