@@ -22,20 +22,23 @@ export class DuckPlayerNativeFeature extends ContentFeature {
2222 current ;
2323
2424 async init ( args ) {
25- console . log ( 'DUCK PLAYER NATIVE LOADING' , args , window . location . href ) ;
25+ console . log ( 'DUCK PLAYER NATIVE LOADING' , args , window . location . href ) ; // TODO: REMOVE
2626
2727 // TODO: May depend on page type
2828 /**
2929 * This feature never operates in a frame
3030 */
31- if ( isBeingFramed ( ) ) return ;
31+ if ( isBeingFramed ( ) ) {
32+ console . log ( 'FRAMED. ABORTING.' ) ; // TODO: REMOVE
33+ return ;
34+ }
3235
3336 const selectors = this . getFeatureSetting ( 'selectors' ) ;
34- console . log ( 'DUCK PLAYER NATIVE SELECTORS' , selectors ) ;
37+ console . log ( 'DUCK PLAYER NATIVE SELECTORS' , selectors ) ; // TODO: REMOVE
3538
3639 const locale = args ?. locale || args ?. language || 'en' ;
3740 const env = new Environment ( {
38- debug : this . isDebug || true , // TODO: remove
41+ debug : this . isDebug || true , // TODO: REMOVE
3942 injectName : import . meta. injectName ,
4043 platform : this . platform ,
4144 locale,
@@ -68,11 +71,9 @@ export class DuckPlayerNativeFeature extends ContentFeature {
6871 console . log ( 'INITIAL SETUP' , initialSetup ) ;
6972
7073 if ( initialSetup . pageType ) {
71- console . log ( 'GOT INITIAL PAGE TYPE' , initialSetup . pageType ) ;
74+ console . log ( 'GOT INITIAL PAGE TYPE' , initialSetup . pageType ) ; // TODO: REMOVE
7275 this . urlChangeHandler ( initialSetup . pageType , selectors , env , messages ) ;
7376 }
74-
75- messages . notifyFeatureIsReady ( ) ;
7677 }
7778
7879 /**
0 commit comments