]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix useShadowRoot warning method name
authorEvan You <evan@vuejs.org>
Wed, 7 Aug 2024 09:21:36 +0000 (17:21 +0800)
committerEvan You <evan@vuejs.org>
Wed, 7 Aug 2024 09:21:36 +0000 (17:21 +0800)
packages/runtime-dom/src/apiCustomElement.ts

index 39336303019c44f34cda0f05ce5b741d160a9dec..694f9e0c7e374c18a88134aa48960d40cb8894af 100644 (file)
@@ -664,10 +664,10 @@ export function useShadowRoot(): ShadowRoot | null {
     return (el as VueElement).shadowRoot
   } else if (__DEV__) {
     if (!instance) {
-      warn(`useCustomElementRoot called without an active component instance.`)
+      warn(`useShadowRoot called without an active component instance.`)
     } else {
       warn(
-        `useCustomElementRoot can only be used in components defined via ` +
+        `useShadowRoot can only be used in components defined via ` +
           `defineCustomElement.`,
       )
     }