From 2ab0df983509dbeae261a5178a221955dc67f585 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Tue, 14 Jan 2025 20:34:55 -0500 Subject: [PATCH] Fix polyfill --- src/tauri_polyfill.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tauri_polyfill.js b/src/tauri_polyfill.js index c145a4e..04f2899 100644 --- a/src/tauri_polyfill.js +++ b/src/tauri_polyfill.js @@ -52,7 +52,7 @@ if (!window.__TAURI__) { invoke: () => {} }, fs: { - writeFile: () => { + writeFile: (path, contents) => { // Create a Blob from the contents const blob = new Blob([contents]); const link = document.createElement('a'); @@ -191,7 +191,7 @@ if (!window.__TAURI__) { confirm: () => {}, }, path: { - documentDir: () => "/Documents", + documentDir: () => {}, join: (...segments) => { return segments.filter(segment => (segment && segment.length > 0)) // Remove empty strings .join('/')