From c9322d91ff570d5d6d0337a572d376c867690f88 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Mon, 29 Apr 2024 08:10:05 +0800 Subject: [PATCH] Revert "directly call Entrymanager" This reverts commit 78ae0d75b500defaf7e0abcb6c5bea162e21625b. --- scripts/actions.js | 12 ++++++++++++ scripts/background/shopAI.js | 6 ++---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 scripts/actions.js diff --git a/scripts/actions.js b/scripts/actions.js new file mode 100644 index 0000000..336b215 --- /dev/null +++ b/scripts/actions.js @@ -0,0 +1,12 @@ +import Tabs from "/scripts/GUI/tabs.js"; +import EntryManager from "/scripts/GUI/entrypoints/manager.js" + +export default class user_actions { + static init() { + user_actions.tabs(); + }; + + static tabs() { + new EntryManager(); + } +}; \ No newline at end of file diff --git a/scripts/background/shopAI.js b/scripts/background/shopAI.js index 4e0f38f..8d7b619 100644 --- a/scripts/background/shopAI.js +++ b/scripts/background/shopAI.js @@ -3,9 +3,7 @@ Shop wisely with AI! */ import fc from './fc.js'; -import EntryManager from "/scripts/GUI/entrypoints/manager.js" -import link from "../link.js"; +import user_actions from "../actions.js"; fc.run(); -new EntryManager(); -new link(); \ No newline at end of file +user_actions.init(); \ No newline at end of file