Skip to content

Commit cc8a7c9

Browse files
committed
[build] 4.1.13
1 parent 19da658 commit cc8a7c9

File tree

6 files changed

+16
-19
lines changed

6 files changed

+16
-19
lines changed

docs/_coverpage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![logo](_media/icon.svg)
22

3-
# docsify <small>4.1.12</small>
3+
# docsify <small>4.1.13</small>
44

55
> A magical documentation site generator.
66

lib/docsify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3750,7 +3750,7 @@ initGlobalAPI();
37503750
/**
37513751
* Version
37523752
*/
3753-
Docsify.version = '4.1.12';
3753+
Docsify.version = '4.1.13';
37543754

37553755
/**
37563756
* Run Docsify

lib/docsify.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/plugins/ga.js

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,21 @@ function appendScript () {
1111
}
1212

1313
function init (id) {
14-
var ga = window.ga;
15-
16-
if (!ga) {
17-
appendScript();
18-
ga = ga || function () {
19-
(ga.q = ga.q || []).push(arguments);
20-
};
21-
ga.l = Number(new Date());
22-
ga('create', id, 'auto');
23-
}
24-
return ga
14+
appendScript();
15+
window.ga = window.ga || function () {
16+
(window.ga.q = window.ga.q || []).push(arguments);
17+
};
18+
window.ga.l = Number(new Date());
19+
window.ga('create', id, 'auto');
2520
}
2621

2722
function collect () {
28-
var ga = init($docsify.ga);
23+
if (!window.ga) {
24+
init($docsify.ga);
25+
}
2926

30-
ga('set', 'page', location.hash);
31-
ga('send', 'pageview');
27+
window.ga('set', 'page', location.hash);
28+
window.ga('send', 'pageview');
3229
}
3330

3431
var install = function (hook) {

lib/plugins/ga.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docsify-server-renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsify-server-renderer",
3-
"version": "4.1.12",
3+
"version": "4.1.13",
44
"description": "docsify server renderer",
55
"author": {
66
"name": "qingwei-li",

0 commit comments

Comments
 (0)