Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
Refactor: Update URL parameters for notes window
itzadetunjiad913890cdf1
diff --git a/electron/windows.ts b/electron/windows.tsindex 7ccacc934..96394df3c 100644--- a/electron/windows.ts+++ b/electron/windows.ts@@ -351,10 +351,10 @@ export function createNotesWindow(): BrowserWindow {});if (VITE_DEV_SERVER_URL) {- win.loadURL(VITE_DEV_SERVER_URL + "?windowType=notes");+ win.loadURL(VITE_DEV_SERVER_URL + "?showNotes=true");} else {win.loadFile(path.join(RENDERER_DIST, "index.html"), {- query: { windowType: "notes" },+ query: { showNotes: "true" },});}diff --git a/src/App.tsx b/src/App.tsxindex 0ba459e10..76b5f024f 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -20,6 +20,8 @@ export default function App() {const [windowType, setWindowType] = useState(() => new URLSearchParams(window.location.search).get("windowType") || "",);+ const showNotes = new URLSearchParams(window.location.search).get("showNotes") === "true";+const tEditor = useScopedT("editor");useEffect(() => {@@ -105,8 +107,10 @@ export default function App() {);default:return (- <div className="w-full h-full bg-background text-foreground">+ <div>+ {/* <div className="w-full h-full bg-background text-foreground"><h1>Openscreen</h1>+ </div> */}</div>);}@@ -114,6 +118,7 @@ export default function App() {return (<TooltipProvider>+ {showNotes && <NotesWindow />}{content}<Toaster theme="dark" /></TooltipProvider>diff --git a/src/main.tsx b/src/main.tsxindex 365bdc7b2..ef7497386 100644--- a/src/main.tsx+++ b/src/main.tsx@@ -5,7 +5,9 @@ import { I18nProvider } from "./contexts/I18nContext";import "./index.css";const windowType = new URLSearchParams(window.location.search).get("windowType") || "";+const showNotes = new URLSearchParams(window.location.search).get("showNotes") === "true";if (+ showNotes ||windowType === "hud-overlay" ||windowType === "source-selector" ||windowType === "countdown-overlay"