mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 18:26:34 +02:00
7 lines
171 B
TypeScript
7 lines
171 B
TypeScript
export const getPortal = () => {
|
|
const el = document.getElementById("portal");
|
|
if (el === null) {
|
|
throw new Error("Portal element not found");
|
|
}
|
|
return el;
|
|
};
|