From 4558c2fb60b2b759a5d44fb5b5976917b63c0a9b Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sat, 25 May 2024 11:17:39 +0800 Subject: [PATCH] place the background events to a variable --- src/scripts/pages/results.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scripts/pages/results.js b/src/scripts/pages/results.js index 6a2becf..5416309 100644 --- a/src/scripts/pages/results.js +++ b/src/scripts/pages/results.js @@ -17,8 +17,9 @@ class Page_Results extends Page { }; async background() { - // Wait until a change in the storage. - new background((changes) => { + this[`scripts`] = {}; + // Wait until a change in the storage. + this[`scripts`][`background`] = new background((changes) => { this.update(); this.content(); // First, update site data but retain the URL.