// Copyright (c) Tailscale Inc & contributors // SPDX-License-Identifier: BSD-3-Clause //go:build ts_omit_drive package main import ( "syscall/js" "tailscale.com/tsd" ) type jsFileSystemForRemote struct{} // initDriveForRemote is a no-op when the drive feature is omitted. func initDriveForRemote(_ *tsd.System) *jsFileSystemForRemote { return nil } // wireDriveJS is a no-op when the drive feature is omitted. func wireDriveJS(_ *jsIPN, _ *jsFileSystemForRemote, _ map[string]any) {} // listDrivePeers returns an empty list when the drive feature is omitted. func (i *jsIPN) listDrivePeers() js.Value { return makePromise(func() (any, error) { return "[]", nil }) }