From 6cbec224b66ece5c8f67e16bb8cb8d38793ee058 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sat, 4 May 2024 10:39:13 +0800 Subject: [PATCH] try to use global storage when setting last ata --- scripts/data/pointer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/data/pointer.js b/scripts/data/pointer.js index a8023af..1a698b5 100644 --- a/scripts/data/pointer.js +++ b/scripts/data/pointer.js @@ -3,7 +3,7 @@ Change the currently selected data to be viewed by the popup. */ -import {session} from "/scripts/secretariat.js"; +import {global} from "/scripts/secretariat.js"; class pointer { /* @@ -20,7 +20,7 @@ class pointer { } catch(err) {} // Get the last edited site. - return(session.write([`last`, `URL`], this.URL)); + return(global.write([`last`, `URL`], this.URL)); } /* @@ -32,7 +32,7 @@ class pointer { // Indicate the status of the process. if ((state && (typeof state).includes(`obj`)) ? Object.keys(state).length : false) { (Object.keys(state)).forEach(async (key) => { - await session.write([`last`, key], state[key]); + await global.write([`last`, key], state[key]); }); } }