Skip to content

Commit a7b91ee

Browse files
Merge pull request #514 from lightpanda-io/js-kind
browser: script with type text/javascript are js
2 parents 309d70c + ad0117e commit a7b91ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/browser/browser.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ pub const Page = struct {
723723
fn parseKind(stype: ?[]const u8) Kind {
724724
if (stype == null or stype.?.len == 0) return .javascript;
725725
if (std.mem.eql(u8, stype.?, "application/javascript")) return .javascript;
726+
if (std.mem.eql(u8, stype.?, "text/javascript")) return .javascript;
726727
if (std.mem.eql(u8, stype.?, "module")) return .module;
727728

728729
return .unknown;

0 commit comments

Comments
 (0)