mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-30 08:24:51 -04:00
config: handle agent mode in disableSubframes
This commit is contained in:
1 parent
7d312ce5e9
commit
19f8a1a2e5
1 file changed
+1
-1
+1
-1
@@ -283,7 +283,7 @@ pub fn obeyRobots(self: *const Config) bool {
|
||||
|
||||
pub fn disableSubframes(self: *const Config) bool {
|
||||
return switch (self.mode) {
|
||||
inline .serve, .fetch, .mcp => |opts| opts.disable_subframes,
|
||||
inline .serve, .fetch, .mcp, .agent => |opts| opts.disable_subframes,
|
||||
else => unreachable,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user