SOURCE / PINNED RELEASE
Made of little things.
Find the Invisible Cow
- Release
- e48b3dced31c…
- Author-recorded commit
- cf79302f143d…
- License
- LICENSE
- Author’s source reference
- nostr://npub1p8rxwea4e0l4jml0q53n5mvh3n7pywq523jk3lm336v04r8ny9jqtq7ttf/wss%3A%2F%2Fgit.napplet.soy%2F/n-3b179f1d7df
Archive hash verified: f8e300eb672b5ee8…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
type NappletWindow = Window & {
napplet?: Record<string, unknown>;
};
/** Return whether the runtime injected a domain for this load. */
export function hasDomain(
napplet: Record<string, unknown> | undefined,
domain: string,
): boolean {
return Boolean(napplet?.[domain]);
}
/** Check a domain on the runtime-owned global without exposing it for calls. */
export function runtimeHasDomain(domain: string): boolean {
return hasDomain((window as NappletWindow).napplet, domain);
}
