doodle/pkg/native/file_dialog_fallback.go

21 lines
329 B
Go
Raw Normal View History

//go:build js && wasm
// +build js,wasm
package native
import (
2022-09-24 22:17:25 +00:00
"git.kirsle.net/SketchyMaze/doodle/pkg/shmem"
)
func init() {
FileDialogsReady = false
}
// OpenFile fallback uses the shell prompt.
func OpenFile(title string, filter string) (string, error) {
shmem.Prompt(title, func(value string) {
})
return "", nil
}