Documentation
    Preparing search index...

    Interface ThemeProxy

    Per-domain proxy for theme.* envelopes.

    Shape: dispatch routes napplet→shell requests into the runtime; emit pushes shell→napplet envelopes through the iframe's Window.

    interface ThemeProxy {
        dispatch(windowId: string, envelope: NappletMessage): void;
        emit(windowId: string, envelope: NappletMessage): void;
    }
    Index

    Methods

    Methods

    • Push a shell-initiated theme-domain envelope (e.g. theme.changed) into a napplet iframe.

      No-op when the originRegistry cannot resolve the windowId (unknown or unregistered napplet). Never throws.

      Parameters

      • windowId: string

        The target napplet's windowId

      • envelope: NappletMessage

        The NIP-5D NappletMessage envelope to deliver

      Returns void