SOURCE / PINNED RELEASE
Made of little things.
Stick Runner
- Release
- 50f4e4cd86f6…
- Author-recorded commit
- 2960bafd6cd9…
- License
- LICENSE
- Author’s source reference
- nostr://npub1ny7l44q0au5xkv3mjgt6zks5f0e2ydefslq4nhh2ve2xypgc2mqqat8qx2/wss%3A%2F%2Fgit.napplet.soy%2F/n-938fb0aa7b7
Archive hash verified: 3dacab6eb59b4481…. 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);
}
