add automatic theme installing

This commit is contained in:
SethBurkart123
2024-05-24 15:02:39 +10:00
parent d1452a5a2b
commit e6f53fa64f
4 changed files with 29 additions and 12 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ export class MessageHandler {
if (request?.save == true) {
const save = async () => {
await saveTheme(request.body)
await setTheme(request.body.id)
if (request.body.enableTheme) {
await setTheme(request.body.id)
}
sendResponse({ status: 'success' })
sendThemeUpdate()
}