diff --git a/src/background.ts b/src/background.ts index 7adcbe0..2befcc5 100644 --- a/src/background.ts +++ b/src/background.ts @@ -36,7 +36,7 @@ chrome.runtime.onInstalled.addListener(async (details) => { 'theme', 'studiengang', 'hisqisPimpedTable', - 'selmajExamTheme', + 'improveSelma', 'savedClickCounter', 'saved_click_counter', // legacy 'Rocket', // legacy @@ -58,7 +58,7 @@ chrome.runtime.onInstalled.addListener(async (details) => { if (typeof currentSettings.dashboardDisplay === 'undefined') updateObj.dashboardDisplay = 'favoriten' if (typeof currentSettings.fwdEnabled === 'undefined') updateObj.fwdEnabled = true if (typeof currentSettings.hisqisPimpedTable === 'undefined') updateObj.hisqisPimpedTable = true - if (typeof currentSettings.selmajExamTheme === 'undefined') updateObj.selmajExamTheme = true + if (typeof currentSettings.improveSelma === 'undefined') updateObj.improveSelma = true if (typeof currentSettings.theme === 'undefined') updateObj.theme = 'system' if (typeof currentSettings.studiengang === 'undefined') updateObj.studiengang = 'general' if (typeof currentSettings.selectedRocketIcon === 'undefined') updateObj.selectedRocketIcon = JSON.stringify(rockets.default) diff --git a/src/contentScripts/other/selma/layout.ts b/src/contentScripts/other/selma/layout.ts index b78e03d..ff32192 100644 --- a/src/contentScripts/other/selma/layout.ts +++ b/src/contentScripts/other/selma/layout.ts @@ -208,11 +208,11 @@ Actual logic */ (async () => { - const { selmajExamTheme } = await chrome.storage.local.get([ - 'selmajExamTheme' + const { improveSelma } = await chrome.storage.local.get([ + 'improveSelma' ]) - if (!selmajExamTheme) return + if (!improveSelma) return // Apply all custom changes document.addEventListener('DOMContentLoaded', eventListener, false) diff --git a/src/freshContent/settings/settingPages/ImproveSelma.vue b/src/freshContent/settings/settingPages/ImproveSelma.vue index dc6b317..5d43a26 100644 --- a/src/freshContent/settings/settingPages/ImproveSelma.vue +++ b/src/freshContent/settings/settingPages/ImproveSelma.vue @@ -6,7 +6,7 @@

@@ -23,26 +23,26 @@ export default defineComponent({ Setting }, setup () { - const selmajExamTheme = ref(true) + const improveSelma = ref(true) onBeforeMount(async () => { - const { selmajExamTheme: storedValue } = await chrome.storage.local.get([ - 'selmajExamTheme' + const { improveSelma: storedValue } = await chrome.storage.local.get([ + 'improveSelma' ]) - selmajExamTheme.value = storedValue ?? true - watch(selmajExamTheme, valueUpdate) + improveSelma.value = storedValue ?? true + watch(improveSelma, valueUpdate) }) const valueUpdate = async () => { // When we got here, we have the permission await chrome.storage.local.set({ - selmajExamTheme: selmajExamTheme.value + improveSelma: improveSelma.value }) } return { - selmajExamTheme + improveSelma } } })