mirror of
https://github.com/mue/mue.git
synced 2026-07-16 05:23:49 +02:00
feat(background): implement IndexedDB for custom background storage and enhance background management features
This commit is contained in:
@@ -38,7 +38,7 @@ export function useBackgroundEvents(backgroundData, refreshBackground) {
|
||||
const needsRefresh =
|
||||
(type !== backgroundData.type && !(backgroundData.photoInfo?.offline && type === backgroundData.type)) ||
|
||||
(backgroundData.type === 'api' && localStorage.getItem('backgroundAPI') !== backgroundData.currentAPI) ||
|
||||
(backgroundData.type === 'custom' && localStorage.getItem('customBackground') !== backgroundData.url) ||
|
||||
(type === 'custom' && backgroundData.type !== 'custom') ||
|
||||
(backgroundData.photoInfo?.pun && JSON.parse(localStorage.getItem('backgroundExclude') || '[]').includes(backgroundData.photoInfo.pun));
|
||||
|
||||
if (needsRefresh) refreshBackground();
|
||||
|
||||
Reference in New Issue
Block a user