Skip to content

Commit

Permalink
修改bug
Browse files Browse the repository at this point in the history
  • Loading branch information
onresize committed Jun 13, 2024
1 parent 15c20d5 commit 96bff0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/.vuepress/public/static/js/auto-upgrade.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
;(function () {
void (function () {
var s, t
s = document.createElement('script')
s.type = 'text/javascript'
s.id = 'version-polling'
console.log('是否为github:', location.href.includes('github.io'))

s.src = location.href.includes('github.io')
? '/web-blogs/static/js/version-polling.js'
: '/static/js/version-polling.js'
Expand Down

0 comments on commit 96bff0f

Please sign in to comment.