diff --git a/internal/fs/iswin_wasm.go b/internal/fs/iswin_wasm.go index f135ca4d0b9..b44a60e06dc 100644 --- a/internal/fs/iswin_wasm.go +++ b/internal/fs/iswin_wasm.go @@ -12,7 +12,7 @@ var cachedIfWindows bool func CheckIfWindows() bool { if !checkedIfWindows { - cachedIfWindows = false + checkedIfWindows = true // Hack: Assume that we're on Windows if we're running WebAssembly and // the "C:\\" directory exists. This is a workaround for a bug in Go's