1 // Content script — runs in ISOLATED world at document_start.
2 // Injects inject.mjs into the MAIN world with the extension URL so it can
3 // load the secp256k1 WASM for BIP-340 signing.
4 'use strict';
5 6 // Load the main inject module in page context.
7 // inject.mjs uses import.meta.url to self-locate its WASM files.
8 const mod = document.createElement('script');
9 mod.type = 'module';
10 mod.src = chrome.runtime.getURL('inject.mjs');
11 (document.head || document.documentElement).appendChild(mod);
12