From 4f344846896153b13bdb00fb4510ec163a4d7671 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Sun, 5 Nov 2023 00:26:03 -0400 Subject: [PATCH] Use correct location for js.html.Navigator. --- source/funkin/util/PlatformUtil.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/funkin/util/PlatformUtil.hx b/source/funkin/util/PlatformUtil.hx index 6c8609332..b709eb475 100644 --- a/source/funkin/util/PlatformUtil.hx +++ b/source/funkin/util/PlatformUtil.hx @@ -13,9 +13,9 @@ class PlatformUtil #if mac return true; #elseif html5 - return js.html.Navigator.platform.startsWith("Mac") - || js.html.Navigator.platform.startsWith("iPad") - || js.html.Navigator.platform.startsWith("iPhone"); + return js.Browser.window.navigator.platform.startsWith("Mac") + || js.Browser.window.navigator.platform.startsWith("iPad") + || js.Browser.window.navigator.platform.startsWith("iPhone"); #else return false; #end