mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 01:25:53 -04:00
config: handle agent mode in disableSubframes
This commit is contained in:
@@ -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