21 lines
301 B
Go
21 lines
301 B
Go
|
// +build js,wasm
|
||
|
|
||
|
package native
|
||
|
|
||
|
import (
|
||
|
"git.kirsle.net/apps/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
|
||
|
}
|
||
|
|