Back to Napplet Machines V8
SOURCE / PINNED RELEASE

Made of little things.

Napplet Machines V8

Release
b3f614e739f0…
Author-recorded commit
534f19acb4ba…
License
LICENSE
Author’s source reference
nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-b5572362d4a

Archive hash verified: 0f7feb97e2c3d336…. 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);
}