Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(web): hide ChromeRecorderButton outside Chrome unless installed
Richie McIlroy25985d2d6d84
diff --git a/apps/web/components/ChromeRecorderButton.tsx b/apps/web/components/ChromeRecorderButton.tsxindex 1e937be7b..e3b7cc06c 100644--- a/apps/web/components/ChromeRecorderButton.tsx+++ b/apps/web/components/ChromeRecorderButton.tsx@@ -16,7 +16,8 @@ export function ChromeRecorderButton({size = "sm",variant = "white",}: ChromeRecorderButtonProps) {- const { isInstalled, openRecorder } = useCapChromeExtension();+ const { isChromeBrowser, isInstalled, openRecorder } =+ useCapChromeExtension();const handleClick: React.MouseEventHandler<HTMLButtonElement> = (event) => {if (!isInstalled) return;@@ -25,6 +26,8 @@ export function ChromeRecorderButton({openRecorder();};+ if (!isChromeBrowser && !isInstalled) return null;+return (<ChromeExtensionButtonhref={isInstalled ? null : undefined}