Skip to content

Commit

Permalink
Merge pull request #191 from HenryQW/fix/leancloud
Browse files Browse the repository at this point in the history
紧急修复:leancloud 域名被封,指向新域名
  • Loading branch information
kitian616 authored Jun 22, 2019
2 parents 7530913 + 4bc973b commit ee8e6eb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions _data/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sources:
bootcdn:
font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css'
jquery: 'https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js'
leancloud_js_sdk: '//cdn1.lncld.net/static/js/3.4.1/av-min.js'
leancloud_js_sdk: '//cdn.jsdelivr.net/npm/[email protected]/dist/av-min.js'
chart: 'https://cdn.bootcss.com/Chart.js/2.7.2/Chart.bundle.min.js'
gitalk:
js: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.js'
Expand All @@ -54,7 +54,7 @@ sources:
unpkg:
font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css'
jquery: 'https://unpkg.com/[email protected]/dist/jquery.min.js'
leancloud_js_sdk: '//cdn1.lncld.net/static/js/3.4.1/av-min.js'
leancloud_js_sdk: '//cdn.jsdelivr.net/npm/[email protected]/dist/av-min.js'
chart: 'https://unpkg.com/[email protected]/dist/Chart.min.js'
gitalk:
js: 'https://unpkg.com/[email protected]/dist/gitalk.min.js'
Expand Down
3 changes: 2 additions & 1 deletion _includes/pageview-providers/leancloud/leancloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
}
}

function pageview(_AV ,options) {
function pageview(_AV, options) {
var AV = _AV;
var appId, appKey, appClass;
appId = options.appId;
appKey = options.appKey;
appClass = options.appClass;
AV.init({
serverURLs: 'https://avoscloud.com',
appId: appId,
appKey: appKey
});
Expand Down
4 changes: 2 additions & 2 deletions docs/_data/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sources:
bootcdn:
font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css'
jquery: 'https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js'
leancloud_js_sdk: '//cdn1.lncld.net/static/js/3.4.1/av-min.js'
leancloud_js_sdk: '//cdn.jsdelivr.net/npm/[email protected]/dist/av-min.js'
chart: 'https://cdn.bootcss.com/Chart.js/2.7.2/Chart.bundle.min.js'
gitalk:
js: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.js'
Expand All @@ -54,7 +54,7 @@ sources:
unpkg:
font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css'
jquery: 'https://unpkg.com/[email protected]/dist/jquery.min.js'
leancloud_js_sdk: '//cdn1.lncld.net/static/js/3.4.1/av-min.js'
leancloud_js_sdk: '//cdn.jsdelivr.net/npm/[email protected]/dist/av-min.js'
chart: 'https://unpkg.com/[email protected]/dist/Chart.min.js'
gitalk:
js: 'https://unpkg.com/[email protected]/dist/gitalk.min.js'
Expand Down
4 changes: 2 additions & 2 deletions test/_data/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sources:
bootcdn:
font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css'
jquery: 'https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js'
leancloud_js_sdk: '//cdn1.lncld.net/static/js/3.4.1/av-min.js'
leancloud_js_sdk: '//cdn.jsdelivr.net/npm/[email protected]/dist/av-min.js'
chart: 'https://cdn.bootcss.com/Chart.js/2.7.2/Chart.bundle.min.js'
gitalk:
js: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.js'
Expand All @@ -54,7 +54,7 @@ sources:
unpkg:
font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css'
jquery: 'https://unpkg.com/[email protected]/dist/jquery.min.js'
leancloud_js_sdk: '//cdn1.lncld.net/static/js/3.4.1/av-min.js'
leancloud_js_sdk: '//cdn.jsdelivr.net/npm/[email protected]/dist/av-min.js'
chart: 'https://unpkg.com/[email protected]/dist/Chart.min.js'
gitalk:
js: 'https://unpkg.com/[email protected]/dist/gitalk.min.js'
Expand Down

0 comments on commit ee8e6eb

Please sign in to comment.