Something went wrong. Try again.
A downstream fork of Tranquil PDS for use in margin.cafe
Something went wrong. Try again.
123456789101112export function portal(node: HTMLElement): { destroy: () => void } { const target = document.body; target.appendChild(node); return { destroy() { if (node.parentNode === target) { target.removeChild(node); } }, };}