diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-01 11:23:34 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 11:24:02 -0300 |
| commit | 6d8bd80429102cb06947f92c2bde00292cae05d5 (patch) | |
| tree | 4eff9014b0ee0526b7e4e2f1bc47155c8bdc51f4 /src | |
| parent | 06d879ca1a896db73af89037ddcf5c317e1389a7 (diff) | |
| download | pardes-6d8bd80429102cb06947f92c2bde00292cae05d5.tar.gz pardes-6d8bd80429102cb06947f92c2bde00292cae05d5.zip | |
The web build compiles again: a dump asks whether a picture is on disk only where there is a disk (fixes zkmtpmmq)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.zig b/src/image.zig index 324d445f..4a8bcdf4 100644 --- a/src/image.zig +++ b/src/image.zig @@ -859,7 +859,7 @@ pub fn dumpPane( // file's text is: the dump keeps only the bytes of one that is not // (megabytes of a PDF per dump, and a stale copy, otherwise). _ = p; - const on_disk = if (filesystem.localPath(path)) |local| @import("exec.zig").kindOf(local) == .file else false; + const on_disk = if (comptime !pardes.hosted) false else if (filesystem.localPath(path)) |local| @import("exec.zig").kindOf(local) == .file else false; const bytes: []const u8 = if (on_disk) &.{} else raw; return .{ .kind = .image, |
