proxied fetch support

This commit is contained in:
josc146
2024-03-26 21:23:09 +08:00
parent c2799c9494
commit 08bc342fd6
6 changed files with 96 additions and 0 deletions

View File

@@ -115,6 +115,12 @@ if (!window.go) {
defineApp('ListDirFiles', async () => {
return []
})
defineApp('GetAbsPath', async (path) => {
return path
})
defineApp('GetProxyPort', async () => {
return 0
})
defineApp('OpenOpenFileDialog', webOpenOpenFileDialog)
defineApp('OpenSaveFileDialog', async (filterPattern, defaultFileName, savedContent) => {
const saver = await import('file-saver')