summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu David <mathieudavid@mathieudavid.org>2015-09-24 22:32:41 +0200
committerMathieu David <mathieudavid@mathieudavid.org>2015-09-24 22:33:05 +0200
commitc1c1074292a081ddac629be05b2d8373af409210 (patch)
tree3a9a84d94c1a70ca0a62be2d35292523e987a4d2
parentc5fa1854c3a779bb566e135f719981b57b182589 (diff)
Fix back-button cache problem? #59v0.0.2
-rw-r--r--src/theme/book.js2
1 files changed, 2 insertions, 0 deletions
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');