mobile.ts 552 B

1234567891011121314151617181920
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { registerPWAHooks } from '#shared/utils/pwa.ts'
  3. import mountApp from '#mobile/main.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. }