Skip to content

Commit db58a2a

Browse files
committed
Fixed missing currentPage ref
1 parent cf6320f commit db58a2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Logger } from './duckplayer/util.js';
1919
*/
2020

2121
export class DuckPlayerNativeFeature extends ContentFeature {
22-
/** @type {{init: () => void, destroy: () => void} | null} */
22+
/** @type {DuckPlayerNativeSubFeature | null} */
2323
currentPage;
2424

2525
async init(args) {
@@ -103,6 +103,7 @@ export class DuckPlayerNativeFeature extends ContentFeature {
103103
if (nextPage) {
104104
logger.log('Running init handlers');
105105
nextPage.onInit();
106+
this.currentPage = nextPage;
106107

107108
if (document.readyState === 'loading') {
108109
const loadHandler = () => {

0 commit comments

Comments
 (0)