Skip to content

Commit

Permalink
fix: popup saved/unsaved icon not in sync with app
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrani committed Dec 21, 2023
1 parent a8a7d4a commit a31c0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function getMediaControlsState(tabId) {

const promises = selectors.map(selector => (
new Promise(resolve => {
if (!selector.includes('loop')) return resolve(getUIState({ selector, tabId }))
if (selector.search(/(loop)|(add-button)/g) < 0) return resolve(getUIState({ selector, tabId }))
return setTimeout(() => resolve(getUIState({ selector, tabId })), 500)
})
))
Expand Down

0 comments on commit a31c0ea

Please sign in to comment.