diff --git a/plugins/eruda/README.md b/plugins/eruda/README.md index f596482d..27e48934 100644 --- a/plugins/eruda/README.md +++ b/plugins/eruda/README.md @@ -1,5 +1,5 @@ Eruda 是一个开源的专为手机网页前端设计的调试面板,类似 DevTools 的迷你版,其主要功能包括:捕获 Console 日志、检查元素状态、捕获 XHR 请求、显示本地存储和 Cookie 信息等等。GitHub 项目地址:[https://github.com/liriliri/eruda](https://github.com/liriliri/eruda) -这个插件可以从 jsDelivr 加载 Eruda 主体,以便在移动端进行调试,但未为 Eruda 加载任何插件。 +这个插件可以从 [Unpkg](https://unpkg.com/) 加载 Eruda 主体,以便在移动端进行调试,但未为 Eruda 加载任何插件。 -访问皮肤站时,在 URL 中加上 `eruda` 参数即可使用。 \ No newline at end of file +访问皮肤站时,在 URL 中加上 `eruda` 参数即可使用。 diff --git a/plugins/eruda/bootstrap.php b/plugins/eruda/bootstrap.php index cb36ceed..7d6c5e47 100644 --- a/plugins/eruda/bootstrap.php +++ b/plugins/eruda/bootstrap.php @@ -6,7 +6,7 @@ return function (Dispatcher $events, Request $request) { if ($request->has('eruda')) { - Hook::addScriptFileToPage('https://cdn.jsdelivr.net/npm/eruda'); + Hook::addScriptFileToPage('https://unpkg.com/eruda'); $events->listen(App\Events\RenderingFooter::class, function ($event) { $event->addContent(''); }); diff --git a/plugins/eruda/package.json b/plugins/eruda/package.json index 70fabfea..127a412e 100644 --- a/plugins/eruda/package.json +++ b/plugins/eruda/package.json @@ -1,6 +1,6 @@ { "name": "eruda", - "version": "1.0.0", + "version": "1.0.1", "title": "Eruda", "description": "适用于移动端浏览器的开发者工具。", "author": "Little_Qiu",