Skip to content

Commit

Permalink
Silence "No tab with id" error on first load (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jan 16, 2023
1 parent 42323d7 commit d0b8146
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/inject-to-existing-tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export async function injectToExistingTabs(
return injectContentScript(
await getTabsByUrl(origins, excludeMatches),
scripts,
{ignoreTargetErrors: true},
);
}

0 comments on commit d0b8146

Please sign in to comment.