Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
SethBurkart123 authored and SethBurkart123 committed Feb 9, 2024
1 parent e8e8ec0 commit fc6c2d7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/seqta/utils/StorageListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,10 @@ export default class StorageListener {
case 'theme':
if (changes.theme.newValue === '' && changes.theme.oldValue !== '') {
document.querySelector('iframe#background')?.remove();
} else if (changes.theme.newValue !== '' && changes.theme.oldValue === '') {
appendBackgroundToUI();
}

} else if (changes.theme.newValue !== '' && changes.theme.oldValue === '') appendBackgroundToUI();
break;

// Add default case if you need to handle a case where changeKey does not match any case
default:
// Handle unknown changeKey if necessary
break;
}
});
Expand Down

0 comments on commit fc6c2d7

Please sign in to comment.