mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Only load PWACompat when we really need it (#1439)
This commit is contained in:
parent
fe5e71a4e5
commit
9a59b7496e
1 changed files with 4 additions and 1 deletions
|
@ -13,7 +13,10 @@ 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)) {
|
||||
if (
|
||||
/\b(iPad|iPhone|iPod)\b/.test(navigator.userAgent) &&
|
||||
!matchMedia("(display-mode: standalone)").matches
|
||||
) {
|
||||
import("pwacompat");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue