Skip to content

Commit

Permalink
Reduce console noise
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 25, 2021
1 parent 97167e5 commit 985d453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/background/messenger/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { isBackgroundPage } from "webext-detect-page";

// TODO: This should be a hard error, but due to unknown dependency routes, it can't be enforced yet
if (isBackgroundPage()) {
console.trace(
console.warn(
"This should not have been imported in the background page. Use the API directly instead."
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/contentScript/messenger/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { isContentScript } from "webext-detect-page";

// TODO: This should be a hard error, but due to unknown dependency routes, it can't be enforced yet
if (isContentScript()) {
console.trace(
console.warn(
"This should not have been imported in the content script. Use the API directly instead."
);
}
Expand Down

0 comments on commit 985d453

Please sign in to comment.