Files
chess/internal/client/command/import_wasm.go
T
lixen 664cf9654e
test / test (push) Canceled after 0s
test / e2e (push) Canceled after 0s
v0.16.0 import PGN, delete games, two-layout web client
2026-10-19 21:02:39 -04:00

12 lines
320 B
Go

//go:build js && wasm
package command
import "fmt"
// readImportFile has no file system in the browser; the web board imports
// a pasted PGN instead.
func readImportFile(path string) (string, error) {
return "", fmt.Errorf("files cannot be read in the browser; paste the PGN into the web board's Import instead")
}