Aegis — the multi-chain wallet built into Theseus (BCH, BTC, DGB, ETH, SOL, TRX, SC)
The main-world bridge is appended at document_start, which often runs before the page has an <html> element. The append threw on null, and the catch marked the origin as Trusted-Types-blocked in localStorage, so every later visit skipped window.ethereum, window.solana and the EIP-6963 announcement on that site. On example.com it failed on 6 of 6 loads. Wait for <html> with a MutationObserver (it fires at the microtask checkpoint before the first parser-inserted script, so the bridge is still first), remember only real Trusted Types refusals, and use a new key so the origins wrongly marked by the old one get the bridge back. |
||
|---|---|---|
| lib | ||
| addon.json | ||
| electrum-servers.json | ||
| index.js | ||
| panel.html | ||
| panel.js | ||
| qr.js | ||
| wallet-inject.js | ||