mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Merge pull request #974 from lightpanda-io/ignore_non_js_script_tags
Removes the log for unknown script tags
This commit is contained in:
@@ -136,14 +136,10 @@ pub fn addFromElement(self: *ScriptManager, element: *parser.Element) !void {
|
|||||||
if (std.ascii.eqlIgnoreCase(script_type, "module")) {
|
if (std.ascii.eqlIgnoreCase(script_type, "module")) {
|
||||||
break :blk .module;
|
break :blk .module;
|
||||||
}
|
}
|
||||||
if (std.ascii.eqlIgnoreCase(script_type, "application/json")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (std.ascii.eqlIgnoreCase(script_type, "application/ld+json")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
log.warn(.user_script, "unknown script type", .{ .type = script_type });
|
// "type" could be anything, but only the above are ones we need to process.
|
||||||
|
// Common other ones are application/json, application/ld+json, text/template
|
||||||
|
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user