foo-webview-sdk
    Preparing search index...

    Function installSmpGlobals

    foo-webview-sdk/smp-compat — Spider Monkey Panel compatibility entry.

    ESM consumers import the bootstrap helper plus the wrapper classes and types directly:

    import { bootstrapSmpCompat, FbMetadbHandle } from 'foo-webview-sdk/smp-compat';
    import { fb } from 'foo-webview-sdk/bridge';

    const { smp, plman } = bootstrapSmpCompat(fb);
    window.smp = smp;
    window.plman = plman;

    The IIFE bundle (dist/smp-compat.global.js) consumed by <script>- tag themes wires the same call automatically — see "./iife". Reading window.fb from the IIFE keeps a single runtime fb instance shared across dist/bridge.global.js + dist/smp-compat.global.js.

    • Install the bootstrap result onto globalThis / window for SMP-compatible script consumers. Idempotent — every assignment is gated by the __smpCompatLoaded flag and hasOwnProperty checks.

      Parameters

      Returns void