gitbook-plugin-bugtagszh
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -295,3 +295,2 @@ require([ 'gitbook', 'jquery'],function( gitbook, $ ){ | ||
},2000) | ||
} | ||
@@ -311,3 +310,2 @@ | ||
gitbook.events.on('page.change',function(){ | ||
console.log( arguments ) | ||
bindSearch() | ||
@@ -314,0 +312,0 @@ closeSearch() |
15
index.js
module.exports = { | ||
book: { | ||
website: { | ||
assets: './assets', | ||
@@ -9,15 +9,4 @@ js: [ | ||
'bugtags.css' | ||
], | ||
html: { | ||
"body:end": function() { | ||
return "<script>var _hmt = _hmt || [];" | ||
+ "(function() {" | ||
+ "var hm = document.createElement('script');" | ||
+ "hm.src = '//hm.baidu.com/hm.js?" + this.options.pluginsConfig.bugtagszh.baiduTongjiToken + "';" | ||
+ "var s = document.getElementsByTagName('script')[0];" | ||
+ "s.parentNode.insertBefore(hm, s);" | ||
+ "})();</script>"; | ||
} | ||
} | ||
] | ||
} | ||
}; |
{ | ||
"name": "gitbook-plugin-bugtagszh", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "gitbook": ">=3.0.0" |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
29102
542