A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
// SPDX-License-Identifier: AGPL-3.0-or-later
export const MEDIA_VIEWER_PORTAL_ROOT_ID = 'media-viewer-portal-root';
export function getMediaViewerPortalRoot(): HTMLElement | null {
if (typeof document === 'undefined') {
return null;
}
return document.getElementById(MEDIA_VIEWER_PORTAL_ROOT_ID) ?? document.body;
}