mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-20 01:38:01 +00:00
show and hide things based on ios, add button for installing PWA
This commit is contained in:
@@ -3,6 +3,10 @@ import ReactDOM from 'react-dom/client';
|
||||
import App from './App.tsx';
|
||||
import './index.css';
|
||||
|
||||
window.isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
||||
|
||||
window.isIPad = /iPad/.test(navigator.userAgent);
|
||||
|
||||
const root = ReactDOM.createRoot(
|
||||
document.getElementById('root') as HTMLElement
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user