Skip to content

🎥 Make videos programmatically with React

173 B
Raw Blame
export const resolveAnimatedImageSource = (src: string): string => {
	if (typeof window === 'undefined') {
		return src;
	}

	return new URL(src, document.baseURI).href;
};