Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix: Remove url import
Richie McIlroy7cc16661fe65
diff --git a/apps/desktop/src/app/page.tsx b/apps/desktop/src/app/page.tsxindex 5db195de9..83ddeb35b 100644--- a/apps/desktop/src/app/page.tsx+++ b/apps/desktop/src/app/page.tsx@@ -81,7 +81,7 @@ export default function CameraPage() {return (<div id="app" data-tauri-drag-region style={{ borderRadius: "16px" }}><WindowActions />- {!isSignedIn ? <SignIn /> : <Recorder />}+ {isSignedIn ? <Recorder /> : <SignIn />}</div>);}diff --git a/apps/desktop/src/utils/auth/index.ts b/apps/desktop/src/utils/auth/index.tsindex c79dfe6cf..57bc7a1d2 100644--- a/apps/desktop/src/utils/auth/index.ts+++ b/apps/desktop/src/utils/auth/index.ts@@ -1,7 +1,6 @@"use client";import callbackTemplate from "./callback.template";-import { URL } from "url";const dynamicImports = {invoke: () => import("@tauri-apps/api").then(({ invoke }) => invoke),@@ -26,6 +25,7 @@ export const login = () => {return;}+ // Direct use of the URL global objectconst urlObject = new URL(data.payload);const token = urlObject.searchParams.get("token");