diff --git a/src/js/core/config.js b/src/js/core/config.js index 96a2b40b..441a68ce 100644 --- a/src/js/core/config.js +++ b/src/js/core/config.js @@ -14,6 +14,8 @@ export const IS_DEMO = queryParamOptions.fullVersion export const SUPPORT_TOUCH = false; +export const IS_MAC = navigator.userAgent.toLowerCase().indexOf("mac os x") >= 0; + const smoothCanvas = true; export const THIRDPARTY_URLS = { diff --git a/src/js/game/hud/hud.js b/src/js/game/hud/hud.js index 3de09aff..d592b723 100644 --- a/src/js/game/hud/hud.js +++ b/src/js/game/hud/hud.js @@ -16,7 +16,7 @@ import { HUDKeybindingOverlay } from "./parts/keybinding_overlay"; import { HUDUnlockNotification } from "./parts/unlock_notification"; import { HUDGameMenu } from "./parts/game_menu"; import { HUDShop } from "./parts/shop"; -import { IS_MOBILE, globalConfig, IS_DEMO } from "../../core/config"; +import { IS_MOBILE, globalConfig, IS_DEMO, IS_MAC } from "../../core/config"; import { HUDMassSelector } from "./parts/mass_selector"; import { HUDVignetteOverlay } from "./parts/vignette_overlay"; import { HUDStatistics } from "./parts/statistics"; @@ -104,6 +104,9 @@ export class GameHUD { if (IS_DEMO) { this.parts.watermark = new HUDWatermark(this.root); + } + + if (IS_DEMO && !IS_MAC) { this.parts.standaloneReminder = new HUDStandaloneReminder(this.root); }