fix(runtime-dom): fix shadowRoot instanceof check in unsupported browsers (#4238)

This commit is contained in:
hfutsora 2021-08-02 21:41:41 +08:00 committed by GitHub
parent d3d5ad204d
commit bc7dd93f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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