diff --git a/content/en/_index.md b/content/en/_index.md index bff01b6339e..554bf10ec9c 100644 --- a/content/en/_index.md +++ b/content/en/_index.md @@ -151,6 +151,14 @@ function restoreImage(imgId, originalSrc) { var img = document.getElementById(imgId); img.src = originalSrc; } + +window.addEventListener('pageshow', function (event) { + if (!event.persisted) return; + document.querySelectorAll('.l5btn[data-default]').forEach(function (link) { + var img = link.querySelector('img'); + restoreImage(img.id, link.dataset.default); + }); +});