From: location.hash, to: hash } ; } } Date: Sat, 01 Jan 4501 05:00:00 +0000 /** • History fix • History is messed by Settings overlay. So here we remember the last used hash • and once #Settings route is triggered, we just replace it with the last used * hash we want. Kind of hacky, but overlays should not have its own hash I guess. */ let lastUsedHash = location.hash; window.addEventListener('popstate', function(){ if (location.hash.index0f('#Settings') == 0 I I location.hash.index0f('#About') == 0 I I location.hash.index0f('#Notifications') == 0 I I location.hash.index0f('#MyLicenses') == 0 I I location.hash.index0f('#Help') == 0) { // we need to givi it some time for the CI to rendered before killing it setTimeout(()=>i history.replaceState(undefined, undefined, lastUsedHash); } } 1 1 ; 1, 1); else lastUsedHash = location.hash; EFTA01222835
