Fix polyfill
This commit is contained in:
parent
542892cb7b
commit
2ab0df9835
|
|
@ -52,7 +52,7 @@ if (!window.__TAURI__) {
|
||||||
invoke: () => {}
|
invoke: () => {}
|
||||||
},
|
},
|
||||||
fs: {
|
fs: {
|
||||||
writeFile: () => {
|
writeFile: (path, contents) => {
|
||||||
// Create a Blob from the contents
|
// Create a Blob from the contents
|
||||||
const blob = new Blob([contents]);
|
const blob = new Blob([contents]);
|
||||||
const link = document.createElement('a');
|
const link = document.createElement('a');
|
||||||
|
|
@ -191,7 +191,7 @@ if (!window.__TAURI__) {
|
||||||
confirm: () => {},
|
confirm: () => {},
|
||||||
},
|
},
|
||||||
path: {
|
path: {
|
||||||
documentDir: () => "/Documents",
|
documentDir: () => {},
|
||||||
join: (...segments) => {
|
join: (...segments) => {
|
||||||
return segments.filter(segment => (segment && segment.length > 0)) // Remove empty strings
|
return segments.filter(segment => (segment && segment.length > 0)) // Remove empty strings
|
||||||
.join('/')
|
.join('/')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue