major file and function refactoring

This commit is contained in:
SethBurkart123
2023-12-11 07:42:24 +11:00
parent 703e592151
commit ec01eeb1b2
5 changed files with 141 additions and 171 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ const useSettingsState = ({ settingsState, setSettingsState }: SettingsProps) =>
RanOnce = true;
// get the current settings state
// @ts-expect-error idk js/ts wizardry
browser.storage.local.get().then().then(function(result: MainConfig) {
// @ts-expect-error - TODO: Fix this
browser.storage.local.get().then((result: MainConfig) => {
setSettingsState({
notificationCollector: result.notificationcollector,
lessonAlerts: result.lessonalert,