Bidirectional registry mapping Window references to windowId strings. Optionally stores NIP-5D identity metadata (dTag and aggregateHash) per window.
import { originRegistry } from '@kehto/shell';originRegistry.register(iframe.contentWindow, 'napp-1');const id = originRegistry.getWindowId(iframe.contentWindow); // 'napp-1' Copy
import { originRegistry } from '@kehto/shell';originRegistry.register(iframe.contentWindow, 'napp-1');const id = originRegistry.getWindowId(iframe.contentWindow); // 'napp-1'
Optional
Bidirectional registry mapping Window references to windowId strings. Optionally stores NIP-5D identity metadata (dTag and aggregateHash) per window.
Example