mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Add "Safari" to PWACompat loading condition
They froze the UA string on iPad.
This commit is contained in:
parent
4672a2a135
commit
182a3e39e1
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import { EVENT } from "../constants";
|
||||||
// No one should have to do this manually, and eventually this annoyance will
|
// 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.
|
// go away once https://bugs.webkit.org/show_bug.cgi?id=183937 is fixed.
|
||||||
if (
|
if (
|
||||||
/\b(iPad|iPhone|iPod)\b/.test(navigator.userAgent) &&
|
/\b(iPad|iPhone|iPod|Safari)\b/.test(navigator.userAgent) &&
|
||||||
!matchMedia("(display-mode: standalone)").matches
|
!matchMedia("(display-mode: standalone)").matches
|
||||||
) {
|
) {
|
||||||
import(/* webpackChunkName: "pwacompat" */ "pwacompat");
|
import(/* webpackChunkName: "pwacompat" */ "pwacompat");
|
||||||
|
|
Loading…
Add table
Reference in a new issue