diff options
Diffstat (limited to 'theme/javascript/state.js')
-rw-r--r-- | theme/javascript/state.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/theme/javascript/state.js b/theme/javascript/state.js index 34e94fe..5e9083f 100644 --- a/theme/javascript/state.js +++ b/theme/javascript/state.js @@ -17,6 +17,9 @@ state.update = function(dom) { // Original path of the file state.filepath = $book.data('filepath'); + // Title of the chapter + state.chapterTitle = $book.data('chapter-title'); + // Absolute url to the root of the book state.root = url.resolve( location.protocol+'//'+location.host, |