You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
450 B
16 lines
450 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build js
|
|
|
|
package taildrop
|
|
|
|
import "errors"
|
|
|
|
func init() {
|
|
// On WASM there is no real filesystem. newFileOps is only reached when
|
|
// SetFileOps was not called; return a clear error rather than panicking.
|
|
newFileOps = func(dir string) (FileOps, error) {
|
|
return nil, errors.New("taildrop: no filesystem on WASM; provide fileOps in the IPN config")
|
|
}
|
|
}
|
|
|