]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-dom): fix shadowRoot instanceof check in unsupported browsers (#4238)
authorhfutsora <31959015+Hfutsora@users.noreply.github.com>
Mon, 2 Aug 2021 13:41:41 +0000 (21:41 +0800)
committerGitHub <noreply@github.com>
Mon, 2 Aug 2021 13:41:41 +0000 (09:41 -0400)
packages/runtime-dom/src/index.ts

index f6f0cf322c4f611132d0b7ed7ee3488f8762ecd1..ed35e1293f8fe0faf38303d0813167f5e2583b3d 100644 (file)
@@ -184,6 +184,7 @@ function normalizeContainer(
   }
   if (
     __DEV__ &&
+    window.ShadowRoot &&
     container instanceof window.ShadowRoot &&
     container.mode === 'closed'
   ) {