import { createBrowserHistory, createMemoryHistory } from 'history'

export default function configureHistory() {
  return window.matchMedia('(display-mode: standalone)').matches
    ? createMemoryHistory()
    : createBrowserHistory()
}

import { createBrowserHistory, createHashHistory } from 'history'

export default function configureHistory() {
  return window.matchMedia('(display-mode: standalone)').matches
    ? createHashHistory()
    : createBrowserHistory()
}

Use hash router in home screen PWA
Use hash router in home screen PWA
