ChemPal Documentation - v1.18.0
    Preparing search index...

    Variable MESSAGE_TYPEConst

    MESSAGE_TYPE: {
        BACKGROUND_FETCH: "BACKGROUND_FETCH";
        BADGE_OWNER: "BADGE_OWNER";
    } = ...

    Discriminators for chrome.runtime messages exchanged between extension contexts (pages) and the background service worker.

    Type declaration

    • ReadonlyBACKGROUND_FETCH: "BACKGROUND_FETCH"

      Proxied fetch request handled by the background worker; see helpers/backgroundFetch.ts.

    • ReadonlyBADGE_OWNER: "BADGE_OWNER"

      Asks whether an open page controls the toolbar badge; see utils/priceDropBadge.ts.

    export const MESSAGE_TYPE = {
    /** Proxied fetch request handled by the background worker; see helpers/backgroundFetch.ts. */
    BACKGROUND_FETCH: 'BACKGROUND_FETCH',
    /** Asks whether an open page controls the toolbar badge; see utils/priceDropBadge.ts. */
    BADGE_OWNER: 'BADGE_OWNER',
    } as const;