|
|
@@ -1268,3 +1268,10 @@ initializeKeyboardShortcuts();
|
|
|
initializeTouchHandler();
|
|
|
initializeClickHandlers();
|
|
|
initializeServiceWorker();
|
|
|
+
|
|
|
+// Reload the page if it was restored from the back-forward cache and mark entries as read is enabled.
|
|
|
+window.addEventListener("pageshow", (event) => {
|
|
|
+ if (event.persisted && document.body.dataset.markAsReadOnView === "true") {
|
|
|
+ location.reload();
|
|
|
+ }
|
|
|
+});
|