mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 09:35:59 -04:00
Config: increase read file size for --inject-script-file
This commit is contained in:
@@ -140,7 +140,7 @@ fn injectScriptFileValidator(
|
||||
return error.InvalidArgument;
|
||||
};
|
||||
|
||||
const bytes = std.fs.cwd().readFileAllocOptions(allocator, path, 1024 * 1024, null, .of(u8), 0) catch |err| {
|
||||
const bytes = std.fs.cwd().readFileAllocOptions(allocator, path, std.math.maxInt(usize), null, .of(u8), null) catch |err| {
|
||||
log.fatal(.app, "failed to read file", .{ .arg = "--inject-script-file", .path = path, .err = err });
|
||||
return error.InvalidArgument;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user