dom: implement navigator.userAgent

This commit is contained in:
Pierre Tachoire
2024-12-29 12:30:37 +01:00
parent 9fb51a1f29
commit b3f7fb7be3
6 changed files with 75 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ pub fn run(arena: *std.heap.ArenaAllocator, comptime dir: []const u8, f: []const
}
// setup global env vars.
var window = Window.create(null);
var window = Window.create(null, null);
window.replaceDocument(html_doc);
window.setStorageShelf(&storageShelf);
try js_env.bindGlobal(&window);