docs(release): seal and deliver task agreement 1.25 with retained production state
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { MobileApp } from './MobileApp';
|
||||
import './mobile.css';
|
||||
|
||||
const fragment = new URLSearchParams(location.hash.slice(1));
|
||||
const token = fragment.get('pair') ?? '';
|
||||
if (fragment.has('pair')) history.replaceState(null, '', location.pathname);
|
||||
createRoot(document.getElementById('mobile-root')!).render(<StrictMode><MobileApp initialToken={token} /></StrictMode>);
|
||||
if ('serviceWorker' in navigator && isSecureContext) navigator.serviceWorker.register('/mobile-sw.js', { scope: '/' }).catch(() => {});
|
||||
Reference in New Issue
Block a user