Back to Drone Zone — deep field
SOURCE / PINNED RELEASE

Made of little things.

Drone Zone — deep field

Release
578f277a8be1
Author-recorded commit
a96742b428de…
License
LICENSE
Author’s source reference
nostr://npub1n8ga89w8h6tvwamxusfyzexw8gjy84yxu9rxgnmk955cxtml4ujswzxydd/wss%3A%2F%2Fgit.napplet.soy%2F/n-9753e6cf3ec

Archive hash verified: f7f3bf8ff3482551. The source-to-build association is the author’s claim; it has not been independently rebuilt.

src/domain-availability.ts
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);
}