From 9f0267f3a530f56c0d17f9ad7584d876fcaba3ba Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Fri, 10 May 2024 23:47:54 +0800 Subject: [PATCH] do not refresh when no changes have been made --- scripts/pages/popup.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/pages/popup.js b/scripts/pages/popup.js index 28b687e..8a973cd 100644 --- a/scripts/pages/popup.js +++ b/scripts/pages/popup.js @@ -80,8 +80,7 @@ class Page_Popup extends Page { : `loading`)]; // Replace the iframe src with the new page. - this.elements[`frame`].src = PAGE; - + (this.elements[`frame`].src != PAGE) ? this.elements[`frame`].src = PAGE : false; // The results page has its own container. this.elements[`container`].classList[(PAGE.includes(`results`)) ? `remove` : `add`](`container`);