diff --git a/core/os/os_js.odin b/core/os/os_js.odin index 4d02eef7c..adb0f8061 100644 --- a/core/os/os_js.odin +++ b/core/os/os_js.odin @@ -252,4 +252,9 @@ current_thread_id :: proc "contextless" () -> int { lookup_env :: proc(key: string, allocator := context.allocator) -> (value: string, found: bool) { return "", false +} + +get_env :: proc(key: string, allocator := context.allocator) -> string { + value, _ := lookup_env(key, allocator) + return value } \ No newline at end of file