Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix(export): remove output path restriction

webadderallc37472c9d6ff
diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.ts
index 919e64f0..57b83ba5 100644
--- a/electron/ipc/handlers.ts
+++ b/electron/ipc/handlers.ts
@@ -5683,14 +5683,6 @@ body{background:transparent;overflow:hidden;width:100vw;height:100vh}
ipcMain.handle('write-exported-video-to-path', async (_event, videoData: ArrayBuffer, outputPath: string) => {
try {
const resolvedPath = path.resolve(outputPath)
- const allowedPrefixes = [app.getPath('temp'), app.getPath('downloads'), RECORDINGS_DIR]
- if (!allowedPrefixes.some((prefix) => resolvedPath.startsWith(prefix))) {
- return {
- success: false,
- message: 'Output path is not in an allowed directory',
- canceled: false,
- }
- }
await fs.mkdir(path.dirname(resolvedPath), { recursive: true });
await fs.writeFile(resolvedPath, Buffer.from(videoData));