Skip to content

Commit

Permalink
📝
Browse files Browse the repository at this point in the history
  • Loading branch information
nanarino committed Jul 26, 2024
1 parent 4545ac2 commit e97926e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
### 例外

```html
<anchor-proxy>
<a href="/">主頁</a>
<a href="/admin" data-proxy-disabled>後臺</a>
</anchor-proxy>

<script type="module">
const ap = document.createElement("anchor-proxy")
ap.proxyFilters = [
(href, target) => !target.hasAttribute("data-proxy-disabled"),
]
</script>
<anchor-proxy>
<a href="/">主頁</a>
<a href="/admin" data-proxy-disabled>後臺</a>
</anchor-proxy>
```

0 comments on commit e97926e

Please sign in to comment.