[build] 4.6.5

This commit is contained in:
qingwei.li 2018-03-03 22:57:34 +08:00
commit 75222209da
19 changed files with 2763 additions and 298 deletions

View file

@ -1,13 +1,13 @@
(function () {
// From https://github.com/egoist/vue-ga/blob/master/src/index.js
function appendScript () {
function appendScript() {
var script = document.createElement('script');
script.async = true;
script.src = 'https://www.google-analytics.com/analytics.js';
document.body.appendChild(script);
}
function init (id) {
function init(id) {
appendScript();
window.ga =
window.ga ||
@ -18,7 +18,7 @@ function init (id) {
window.ga('create', id, 'auto');
}
function collect () {
function collect() {
if (!window.ga) {
init($docsify.ga);
}