fix: background categories dropdown

This commit is contained in:
David Ralph
2021-11-27 23:11:40 +00:00
parent 5703abb685
commit 3c7be2d64d
2 changed files with 17 additions and 5 deletions

View File

@@ -48,6 +48,7 @@ export function install(type, input, sideload) {
localStorage.setItem('quoteType', 'quote_pack');
EventBus.dispatch('refresh', 'quote');
break;
default:
break;
}
@@ -78,6 +79,7 @@ export function uninstall(type, name) {
});
showReminder();
break;
case 'quotes':
localStorage.removeItem('quote_packs');
localStorage.removeItem('quoteAPI');
@@ -85,12 +87,14 @@ export function uninstall(type, name) {
localStorage.removeItem('oldQuoteType');
EventBus.dispatch('refresh', 'marketplacequoteuninstall');
break;
case 'photos':
localStorage.removeItem('photo_packs');
localStorage.setItem('backgroundType', localStorage.getItem('oldBackgroundType'));
localStorage.removeItem('oldBackgroundType');
EventBus.dispatch('refresh', 'marketplacebackgrounduninstall');
break;
default:
break;
}