summaryrefslogtreecommitdiff
path: root/src/web.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/web.zig')
-rw-r--r--src/web.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/web.zig b/src/web.zig
index cebbeebf..6ceca904 100644
--- a/src/web.zig
+++ b/src/web.zig
@@ -375,6 +375,13 @@ export fn pardes_effect_next() u32 {
if (e.on) if (s.core.panes[e.pane]) |pane| if (pane.file) |file| putEffect(s, file.path);
break :blk 9;
},
+ // Browser hosts cannot create this file, but surface the request like
+ // the other host-specific IO effects instead of performing IO here.
+ .new_file => |e| blk: {
+ effect_aux0 = e.pane;
+ effect_aux1 = e.serial;
+ break :blk 11;
+ },
.quit => 10,
};
}