From 14e83d8a4fc58684634aba4810e882bfe7a74f76 Mon Sep 17 00:00:00 2001 From: wanhose Date: Tue, 7 Dec 2021 17:15:28 +0100 Subject: [PATCH] feat(scripts): fix bfcache issues --- scripts/content.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/content.js b/scripts/content.js index cd1b7e9..e578a31 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -182,7 +182,7 @@ const querySelectors = () => }); /** - * @description Listens DOM complete state + * @description Cleans DOM again after all * @listens document#readystatechange */ @@ -196,6 +196,13 @@ document.addEventListener("readystatechange", () => { }); }); +/** + * @description Fix bfcache issues + * @listens window#unload + */ + +window.addEventListener("unload", () => {}); + /** * @description Setups everything and starts to observe if enabled */