// 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") } }