Skip to content

Commit

Permalink
Avoid need for making platform lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Feb 8, 2025
1 parent 5a87ee3 commit 35372bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/driver/glfw/shortcuts_wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"syscall/js"
)

var isMacOS = strings.Contains(strings.ToLower(js.Global().Get("window").Get("navigator").Get("platform").String()), "mac")
var isMacOS = strings.Contains(js.Global().Get("window").Get("navigator").Get("platform").String(), "Mac")

// Checks if running on Mac OSX
func isMacOSRuntime() bool {
Expand Down

0 comments on commit 35372bb

Please sign in to comment.