diff --git a/content.js b/content.js index c36a21f..6af1c1a 100644 --- a/content.js +++ b/content.js @@ -5,8 +5,9 @@ window.onload = function() { var bodyList = document.querySelector("body") var observer = new MutationObserver(function(mutations) { - mutations.forEach(function(mutation) { - if (oldHref != document.location.href) { + + mutations.forEach(function() { + if (oldHref !== document.location.href) { oldHref = document.location.href; replaceHomePage(); } @@ -31,7 +32,7 @@ const replaceHomePage = () => {