From 3d0a5642ccc8568922996e727266c02881cdaa26 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 20 May 2021 14:23:50 +0200 Subject: [PATCH] Only apply on Safari 14.0, and not 14.0.1 --- src/resources/safari-14-attachshadow-patch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/safari-14-attachshadow-patch.ts b/src/resources/safari-14-attachshadow-patch.ts index 597e0f480e..88954ab4d2 100644 --- a/src/resources/safari-14-attachshadow-patch.ts +++ b/src/resources/safari-14-attachshadow-patch.ts @@ -1,5 +1,5 @@ // https://github.com/home-assistant/frontend/pull/7031 -const isSafari14 = /^((?!chrome|android).)*version\/14\.0.*safari/i.test( +const isSafari14 = /^((?!chrome|android).)*version\/14\.0\s.*safari/i.test( navigator.userAgent ); if (isSafari14) {