diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-27 12:19:54 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-27 12:19:54 +0100 |
commit | 0abbfde912ad6cb2ffd0b766f1fead70061a07c3 (patch) | |
tree | 5d20582f383b64315246edd43051bdb52e041baf | |
parent | 0521defb635075165699c8729ef849e69492b3b5 (diff) | |
download | gitbook-0abbfde912ad6cb2ffd0b766f1fead70061a07c3.zip gitbook-0abbfde912ad6cb2ffd0b766f1fead70061a07c3.tar.gz gitbook-0abbfde912ad6cb2ffd0b766f1fead70061a07c3.tar.bz2 |
Add chapterTitle to app build
-rw-r--r-- | theme/assets/website/app.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/theme/assets/website/app.js b/theme/assets/website/app.js index 82bc568..4f8de39 100644 --- a/theme/assets/website/app.js +++ b/theme/assets/website/app.js @@ -24743,6 +24743,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, |