Skip to content

Commit f798c33

Browse files
committed
Removed logging
1 parent e5ab09f commit f798c33

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,14 @@ export class DuckPlayerNativeFeature extends ContentFeature {
2222
currentPage;
2323

2424
async init(args) {
25-
console.log('DUCK PLAYER NATIVE LOADING', args, window.location.href); // TODO: REMOVE
25+
console.log('Duck Player Native loading...', args, window.location.href);
2626

2727
/**
2828
* This feature never operates in a frame
2929
*/
30-
if (isBeingFramed()) {
31-
return;
32-
}
30+
if (isBeingFramed()) return;
3331

3432
const selectors = this.getFeatureSetting('selectors');
35-
console.log('DUCK PLAYER NATIVE SELECTORS', selectors); // TODO: REMOVE
3633
if (!selectors) {
3734
console.warn('No selectors found. Check remote config. Feature will not be initialized.');
3835
return;
@@ -49,7 +46,6 @@ export class DuckPlayerNativeFeature extends ContentFeature {
4946
const messages = new DuckPlayerNativeMessages(this.messaging, env);
5047
messages.subscribeToURLChange(({ pageType }) => {
5148
const playbackPaused = false; // TODO: Get this from the native notification too?
52-
console.log('GOT PAGE TYPE', pageType);
5349
this.urlChanged(pageType, selectors, playbackPaused, env, messages);
5450
});
5551

@@ -67,7 +63,6 @@ export class DuckPlayerNativeFeature extends ContentFeature {
6763

6864
if (initialSetup.pageType) {
6965
const playbackPaused = initialSetup.playbackPaused || false;
70-
console.log('GOT INITIAL PAGE TYPE', initialSetup.pageType, 'playbackPaused', playbackPaused); // TODO: REMOVE
7166
this.urlChanged(initialSetup.pageType, selectors, playbackPaused, env, messages);
7267
}
7368
}
@@ -100,12 +95,10 @@ export class DuckPlayerNativeFeature extends ContentFeature {
10095
}
10196

10297
if (this.currentPage) {
103-
console.log('DESTROYING CURRENT INSTANCE', this.currentPage);
10498
this.currentPage.destroy();
10599
}
106100

107101
if (nextPage) {
108-
console.log('LOADING NEXT INSTANCE', nextPage);
109102
nextPage.init();
110103
this.currentPage = nextPage;
111104
}

injected/src/features/duckplayer-native/messages.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export class DuckPlayerNativeMessages {
8585
* @param {(urlSettings: UrlChangeSettings) => void} callback
8686
*/
8787
subscribeToURLChange(callback) {
88-
console.log('SUBSCRIBING TO URL CHANGE');
8988
return this.messaging.subscribe(constants.MSG_NAME_URL_CHANGE, callback);
9089
}
9190

@@ -108,7 +107,6 @@ export class DuckPlayerNativeMessages {
108107
* Notifies browser that scripts are ready to be acalled
109108
*/
110109
notifyScriptIsReady() {
111-
console.log('FIRING ON DUCK PLAYER SCRIPTS READY')
112110
this.messaging.notify(constants.MSG_NAME_SCRIPTS_READY, {});
113111
}
114112

messaging/lib/webkit.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ export class WebkitMessagingTransport {
154154
* @param {import('../index.js').RequestMessage} msg
155155
*/
156156
async request(msg) {
157-
console.log('MESSAGE', msg);
158157
const data = await this.wkSendAndWait(msg.context, msg);
159158

160159
if (isResponseFor(msg, data)) {

0 commit comments

Comments
 (0)