mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 06:42:35 +00:00
Fix back-button cache problem? #59
This commit is contained in:
parent
c5fa1854c3
commit
c1c1074292
1 changed files with 2 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue