File tree 1 file changed +13
-14
lines changed
1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -49,20 +49,6 @@ export class DuckPlayerNativeFeature extends ContentFeature {
49
49
const comms = new DuckPlayerNativeMessages ( this . messaging ) ;
50
50
const settings = { selectors } ;
51
51
52
-
53
- /** @type {InitialSettings } */
54
- let initialSetup ;
55
-
56
- // TODO: This seems to get initted twice. Check with Daniel
57
- try {
58
- initialSetup = await comms . initialSetup ( ) ;
59
- } catch ( e ) {
60
- console . error ( e ) ;
61
- return ;
62
- }
63
-
64
- console . log ( 'INITIAL SETUP' , initialSetup ) ;
65
-
66
52
comms . subscribeToURLChange ( ( { pageType } ) => {
67
53
console . log ( 'GOT PAGE TYPE' , pageType ) ;
68
54
let next ;
@@ -91,6 +77,19 @@ export class DuckPlayerNativeFeature extends ContentFeature {
91
77
this . current = next ;
92
78
}
93
79
} ) ;
80
+
81
+ /** @type {InitialSettings } */
82
+ let initialSetup ;
83
+
84
+ // TODO: This seems to get initted twice. Check with Daniel
85
+ try {
86
+ initialSetup = await comms . initialSetup ( ) ;
87
+ } catch ( e ) {
88
+ console . error ( e ) ;
89
+ return ;
90
+ }
91
+
92
+ console . log ( 'INITIAL SETUP' , initialSetup ) ;
94
93
}
95
94
}
96
95
You can’t perform that action at this time.
0 commit comments