docs: 更新文档链接至新域名 cwd.js.org
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
```html
|
||||
<div id="comments"></div>
|
||||
<script src="https://cwd.zishu.me/cwd.js"></script>
|
||||
<script src="https://cwd.js.org/cwd.js"></script>
|
||||
<script>
|
||||
const comments = new CWDComments({
|
||||
el: '#comments',
|
||||
@@ -62,7 +62,7 @@ comments.updateConfig({ theme: 'dark' });
|
||||
|
||||
```html
|
||||
<div id="comments"></div>
|
||||
<script src="https://cwd.zishu.me/cwd.js"></script>
|
||||
<script src="https://cwd.js.org/cwd.js"></script>
|
||||
<script>
|
||||
const comments = new CWDComments({
|
||||
el: '#comments',
|
||||
@@ -76,7 +76,7 @@ comments.updateConfig({ theme: 'dark' });
|
||||
|
||||
```astro
|
||||
<div id="comments"></div>
|
||||
<script src="https://cwd.zishu.me/cwd.js" is:inline></script>
|
||||
<script src="https://cwd.js.org/cwd.js" is:inline></script>
|
||||
<script is:inline>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const comments = new window.CWDComments({
|
||||
@@ -107,7 +107,7 @@ comments.updateConfig({ theme: 'dark' });
|
||||
|
||||
onMounted(async () => {
|
||||
if (!window.CWDComments) {
|
||||
await loadScript('https://cwd.zishu.me/cwd.js');
|
||||
await loadScript('https://cwd.js.org/cwd.js');
|
||||
}
|
||||
|
||||
instance = new window.CWDComments({
|
||||
|
||||
Reference in New Issue
Block a user