LeanCloud域名更换

使用Valine评论插件注册过LeanCloud的小伙伴们从昨天起应该都收到过一封邮件和一条短信,告知了LeanCloud对域名进行更换

1561110383597

1561110973461

从而导致好多小伙伴们的Valine评论插件报错Code -1: Request has been terminated

Code -1: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.

Valine插件作者在今天下午解决了这个问题:

1561110735524

恢复Valine评论

博主的Hexo主题Sakura
下面是博主恢复Valine评论的记录:

  • 1、打开文件/themes/sakura/layout/_partial/footer.ejs
  • 2、搜索`unpkg.com/valine@1.3.4/dist/Valine.min.js,将此路径替换为unpkg.com/valine@1.3.7/dist/Valine.min.js`
  • 3、将<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>删除注释掉即可

1561111361081


YOLO