Skip to content

Commit

Permalink
Merge pull request #213 from tshaddix/fixed-212
Browse files Browse the repository at this point in the history
Fixed #212
  • Loading branch information
tshaddix authored May 28, 2019
2 parents 92812f6 + 6468851 commit 09ea155
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/wrap-store/wrapStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ export default (store, {
*/
browserAPI.tabs.query({}, tabs => {
for(const tab of tabs){
browserAPI.tabs.sendMessage(tab.id, {action: 'storeReady'});
}
}, () => {
if (chrome.runtime.lastError) {
// do nothing - errors can be present
// if no content script exists on reciever
browserAPI.tabs.sendMessage(tab.id, {action: 'storeReady'}, () => {
if (chrome.runtime.lastError) {
// do nothing - errors can be present
// if no content script exists on reciever
}
});
}
});

Expand Down

0 comments on commit 09ea155

Please sign in to comment.