fix: background not changing on storage change

This commit is contained in:
SethBurkart123
2024-02-09 16:42:33 +11:00
parent e08b9b0188
commit 4cd7bd718e
+1
View File
@@ -103,6 +103,7 @@ const main = async (): Promise<void> => {
// Listen for changes to local storage // Listen for changes to local storage
window.addEventListener('storage', async (event) => { window.addEventListener('storage', async (event) => {
if (event.key === 'selectedBackground') { if (event.key === 'selectedBackground') {
await updateBackground();
} }
}); });
}; };