From c1c1074292a081ddac629be05b2d8373af409210 Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Thu, 24 Sep 2015 22:32:41 +0200 Subject: [PATCH] Fix back-button cache problem? #59 --- src/theme/book.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/theme/book.js b/src/theme/book.js index 297f5360..0754fee7 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -3,6 +3,8 @@ $( document ).ready(function() { // url var url = window.location.pathname; + // Fix back button cache problem + window.onunload = function(){}; // Set theme var theme = localStorage.getItem('theme');