The autorun data is stored globally

This commit is contained in:
buzz-lightsnack-2007 2024-04-30 23:27:56 +08:00
parent a10a14893a
commit 3fa346a7af

View file

@ -1,5 +1,5 @@
import Sidebar from '../GUI/sidebar.js'; import Sidebar from '../GUI/sidebar.js';
import {read, write} from '../secretariat.js'; import {global} from '../secretariat.js';
class sidebar_handler extends Page { class sidebar_handler extends Page {
constructor () { constructor () {
@ -7,6 +7,6 @@ class sidebar_handler extends Page {
} }
async activate () { async activate () {
await read(`settings,behavior,autoRun`) await global.read(`settings,behavior,autoRun`)
} }
} }