Skip to content

Commit d0b8146

Browse files
authored
Silence "No tab with id" error on first load (#53)
1 parent 42323d7 commit d0b8146

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/inject-to-existing-tabs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ export async function injectToExistingTabs(
88
return injectContentScript(
99
await getTabsByUrl(origins, excludeMatches),
1010
scripts,
11+
{ignoreTargetErrors: true},
1112
);
1213
}

0 commit comments

Comments
 (0)