From 3fa346a7af54dd5a84864a5951a569d32f4da815 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Tue, 30 Apr 2024 23:27:56 +0800 Subject: [PATCH] The autorun data is stored globally --- scripts/pages/sidebar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pages/sidebar.js b/scripts/pages/sidebar.js index 195cfee..534dcbc 100644 --- a/scripts/pages/sidebar.js +++ b/scripts/pages/sidebar.js @@ -1,5 +1,5 @@ import Sidebar from '../GUI/sidebar.js'; -import {read, write} from '../secretariat.js'; +import {global} from '../secretariat.js'; class sidebar_handler extends Page { constructor () { @@ -7,6 +7,6 @@ class sidebar_handler extends Page { } async activate () { - await read(`settings,behavior,autoRun`) + await global.read(`settings,behavior,autoRun`) } } \ No newline at end of file