gitbook-plugin-theme-mbook
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -5,3 +5,3 @@ { | ||
"main": "./index.js", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"engines": { | ||
@@ -8,0 +8,0 @@ "gitbook": ">=3.2.2" |
@@ -140,4 +140,8 @@ var $ = require('jquery'); | ||
var $link = $chapter.children('a'), | ||
hash = $link.attr('href').split('#')[1]; | ||
hash = $link.attr('href'); | ||
if (hash) { | ||
hash = hash.split('#')[1]; | ||
} | ||
if (hash) hash = '#'+hash; | ||
@@ -144,0 +148,0 @@ return (!!hash)? hash : ''; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1553460
2328