Add PWACompat (#1433)

* Add PWACompat (attempt)
Fixes #1425

* Fix CSS, use custom splash screen font

* Respect bottom safe area
This commit is contained in:
Thomas Steiner 2020-04-16 14:23:39 +02:00 committed by GitHub
parent 75e0163dd1
commit fe5e71a4e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 37 additions and 64 deletions

View file

@ -10,6 +10,13 @@ import { register as registerServiceWorker } from "./serviceWorker";
import "./css/styles.scss";
// On Apple mobile devices add the proprietary app icon and splashscreen markup.
// No one should have to do this manually, and eventually this annoyance will
// go away once https://bugs.webkit.org/show_bug.cgi?id=183937 is fixed.
if (/\b(iPad|iPhone|iPod)\b/.test(navigator.userAgent)) {
import("pwacompat");
}
const SentryEnvHostnameMap: { [key: string]: string } = {
"excalidraw.com": "production",
"now.sh": "staging",