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) {