mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
Reload page when back button in browser pressed, avoid reading burn
after read paste from cache
This commit is contained in:
parent
afcece17dd
commit
e298c3d10c
|
@ -5386,6 +5386,10 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
if (Model.hasDeleteToken()) {
|
||||
return;
|
||||
}
|
||||
// always reload on back button to invalidate cache(protect burn after read paste)
|
||||
window.addEventListener('popstate', () => {
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
// display an existing paste
|
||||
return me.showPaste();
|
||||
|
|
Loading…
Reference in New Issue
Block a user