mobile.ts 551 B

12345678910111213141516171819
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import mountApp from '#mobile/main.ts'
  3. import { registerPWAHooks } from '#shared/utils/pwa.ts'
  4. registerPWAHooks()
  5. mountApp()
  6. // make sure the color of the address bar and iOS/Android header matches the theme
  7. const meta =
  8. document.head.querySelector('meta[name="theme-color"]') ||
  9. document.createElement('meta')
  10. meta.setAttribute('name', 'theme-color')
  11. meta.setAttribute('content', '#191919')
  12. if (!document.head.contains(meta)) {
  13. document.head.appendChild(meta)
  14. }