Skip to content

Commit

Permalink
fixing prototype errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamkrishnar committed Nov 4, 2022
1 parent f940ab6 commit 533f176
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function downloadAgent() {
const history = new Map();

// Hide bottom bar
browser.storage.sync.get('hideChromeBar').then(({ hideChromeBar }) => {
browser.storage.sync.get(['hideChromeBar']).then(({ hideChromeBar }) => {
browser.downloads.setShelfEnabled?.(!hideChromeBar);
});

Expand Down
2 changes: 1 addition & 1 deletion app/scripts/createThemed.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function createThemed(Child) {
);

React.useEffect(() => {
browser.storage.sync.get('darkMode').then(({ darkMode }) => {
browser.storage.sync.get(['darkMode']).then(({ darkMode }) => {
setMode(darkMode ? 'dark' : 'light');
});
}, []);
Expand Down

0 comments on commit 533f176

Please sign in to comment.