Skip to content

Commit ae56308

Browse files
committed
Gates console.warn statements behind debug flag in Duck Player Native
1 parent c144529 commit ae56308

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

injected/src/features/duck-player-native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class DuckPlayerNativeFeature extends ContentFeature {
3737

3838
const selectors = this.getFeatureSetting('selectors');
3939
if (!selectors) {
40-
console.warn('No selectors found. Check remote config. Feature will not be initialized.');
40+
if (this.isDebug) console.warn('No selectors found. Check remote config. Feature will not be initialized.');
4141
return;
4242
}
4343

@@ -64,7 +64,7 @@ export class DuckPlayerNativeFeature extends ContentFeature {
6464
try {
6565
initialSetup = await messages.initialSetup();
6666
} catch (e) {
67-
console.warn('Failed to get initial setup', e);
67+
if (this.isDebug) console.warn('Failed to get initial setup', e);
6868
return;
6969
}
7070

@@ -103,7 +103,7 @@ export class DuckPlayerNativeFeature extends ContentFeature {
103103
break;
104104
case 'UNKNOWN':
105105
default:
106-
console.warn('No known pageType');
106+
logger.warn('No known pageType');
107107
}
108108

109109
if (this.currentPage) {

0 commit comments

Comments
 (0)