Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp
323 B
Raw Blame
// 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;
}