@@ -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 }
0 commit comments