Skip to content

Commit ea6376c

Browse files
authored
Merge pull request #210 from tshaddix/store-ready-error-ignore
Add a response handler to the store ready messages to read lastError
2 parents b3b76d1 + 693d332 commit ea6376c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wrap-store/wrapStore.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ export default (store, {
167167
for(const tab of tabs){
168168
browserAPI.tabs.sendMessage(tab.id, {action: 'storeReady'});
169169
}
170+
}, () => {
171+
if (chrome.runtime.lastError) {
172+
// do nothing - errors can be present
173+
// if no content script exists on reciever
174+
}
170175
});
171176

172177
// For non-tab based

0 commit comments

Comments
 (0)