Skip to content

Commit 4cf10ff

Browse files
committed
refactor(emot): 调整 emot 的 cdn 引入以及将 baomitu 作为默认 cdn
1 parent 31bc4b0 commit 4cf10ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
ph: '快来评论呀',
179179
serverURLs: ipts[0].value,
180180
path: ipts[1].value,
181-
emotCDN: 'https://cdn.jsdelivr.net/npm'
181+
emotCDN: 'https://cdn.jsdelivr.net/npm/[email protected]'
182182
})
183183
}
184184
</script>

src/client/lib/emot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const key = [
153153
]
154154

155155
export default (emotCDN) => {
156-
emotCDN = (emotCDN || 'https://unpkg.com').replace(/\/$/, '') + `/discuss@${version}/assets/emot/`
156+
emotCDN = (emotCDN || `https://lib.baomitu.com/discuss/${version}`).replace(/\/$/, '') + '/assets/emot/'
157157
const items = {}
158158
for (const i of key) items[i] = emotCDN + i + '.png'
159159
return {

0 commit comments

Comments
 (0)