place the background events to a variable

This commit is contained in:
buzz-lightsnack-2007 2024-05-25 11:17:39 +08:00
parent fd7a0c2c88
commit 4558c2fb60

View file

@ -17,8 +17,9 @@ class Page_Results extends Page {
}; };
async background() { async background() {
this[`scripts`] = {};
// Wait until a change in the storage. // Wait until a change in the storage.
new background((changes) => { this[`scripts`][`background`] = new background((changes) => {
this.update(); this.update();
this.content(); this.content();
// First, update site data but retain the URL. // First, update site data but retain the URL.