浏览代码

Fixed link in error message (#2836)

Alexey Khachaturyan 3 年之前
父节点
当前提交
d8b3499ee4
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      packages/alpinejs/src/directives/index.js
  2. 1 1
      packages/alpinejs/src/magics/index.js

+ 1 - 1
packages/alpinejs/src/directives/index.js

@@ -27,5 +27,5 @@ warnMissingPluginDirective('Focus', 'trap', 'focus')
 warnMissingPluginDirective('Mask', 'mask', 'mask')
 
 function warnMissingPluginDirective(name, directiveName, slug) {
-    directive(directiveName, (el) => warn(`You can't use [x-${directiveName}] without first installing the "${name}" plugin here: https://alpine.dev/plugins/${slug}`, el))
+    directive(directiveName, (el) => warn(`You can't use [x-${directiveName}] without first installing the "${name}" plugin here: https://alpinejs.dev/plugins/${slug}`, el))
 }

+ 1 - 1
packages/alpinejs/src/magics/index.js

@@ -16,5 +16,5 @@ warnMissingPluginMagic('Focus', 'focus', 'focus')
 warnMissingPluginMagic('Persist', 'persist', 'persist')
 
 function warnMissingPluginMagic(name, magicName, slug) {
-    magic(magicName, (el) => warn(`You can't use [$${directiveName}] without first installing the "${name}" plugin here: https://alpine.dev/plugins/${slug}`, el))
+    magic(magicName, (el) => warn(`You can't use [$${directiveName}] without first installing the "${name}" plugin here: https://alpinejs.dev/plugins/${slug}`, el))
 }