do not refresh when no changes have been made

This commit is contained in:
buzz-lightsnack-2007 2024-05-10 23:47:54 +08:00
parent a97c3d8a6a
commit 9f0267f3a5

View file

@ -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`);