Skip to content

Commit

Permalink
Match style in first log
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Nov 11, 2023
1 parent 0b66898 commit 33ccd8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/thisTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ export function initPrivateApi(): void {
// https://github.com/pixiebrix/webext-messenger/issues/88
if (globalThis.__webextMessenger) {
// TODO: Use Error#cause after https://bugs.chromium.org/p/chromium/issues/detail?id=1211260

Check warning on line 179 in source/thisTarget.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected 'todo' comment: 'TODO: Use Error#cause after...'

Check warning on line 179 in source/thisTarget.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected 'todo' comment: 'TODO: Use Error#cause after...'
console.log(globalThis.__webextMessenger.replace(/^Error: /, ""));
console.log(
globalThis.__webextMessenger.replace(/^Error/, "webext-messenger")
);
console.error(
"webext-messenger: Duplicate execution. This is a fatal error.\nhttps://github.com/pixiebrix/webext-messenger/issues/88"
);
Expand Down

0 comments on commit 33ccd8d

Please sign in to comment.