Skip to content

Commit

Permalink
[eruda] fix CDN link
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Jun 10, 2022
1 parent 34ea17a commit 86272bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/eruda/README.md
Original file line number Diff line number Diff line change
@@ -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` 参数即可使用。
访问皮肤站时,在 URL 中加上 `eruda` 参数即可使用。
2 changes: 1 addition & 1 deletion plugins/eruda/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<script>eruda.init();</script>');
});
Expand Down
2 changes: 1 addition & 1 deletion plugins/eruda/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eruda",
"version": "1.0.0",
"version": "1.0.1",
"title": "Eruda",
"description": "适用于移动端浏览器的开发者工具。",
"author": "Little_Qiu",
Expand Down

0 comments on commit 86272bb

Please sign in to comment.