From 182a3e39e1362d73d2a565c870eb2fb72071fdcc Mon Sep 17 00:00:00 2001 From: Thomas Steiner Date: Wed, 9 Dec 2020 16:49:12 +0100 Subject: [PATCH] Add "Safari" to PWACompat loading condition They froze the UA string on iPad. --- src/excalidraw-app/pwa.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/excalidraw-app/pwa.ts b/src/excalidraw-app/pwa.ts index 44f14930..bdf92552 100644 --- a/src/excalidraw-app/pwa.ts +++ b/src/excalidraw-app/pwa.ts @@ -5,7 +5,7 @@ import { EVENT } from "../constants"; // 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) && + /\b(iPad|iPhone|iPod|Safari)\b/.test(navigator.userAgent) && !matchMedia("(display-mode: standalone)").matches ) { import(/* webpackChunkName: "pwacompat" */ "pwacompat");