Skip to content

Commit 2a4d8d9

Browse files
committed
More comments; Reverted docs script change
1 parent ccbaa95 commit 2a4d8d9

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@ export class DuckPlayerNativePage {
3030
environment;
3131
/** @type {DuckPlayerNativeMessages} */
3232
messages;
33-
/** @type {CustomEventHandler} */
33+
/**
34+
* Runs when an instance of this class is initialized
35+
* @type {CustomEventHandler}
36+
*/
3437
onInit;
35-
/** @type {CustomEventHandler} */
38+
/**
39+
* Runs after the current document has been loaded
40+
* @type {CustomEventHandler}
41+
*/
3642
onLoad;
3743

3844
/**
@@ -98,6 +104,8 @@ export class DuckPlayerNativePage {
98104
}
99105

100106
/**
107+
* Sets up Duck Player for a YouTube watch page
108+
*
101109
* @param {DuckPlayerNativeSelectors} selectors
102110
* @param {boolean} playbackPaused
103111
* @param {Environment} environment
@@ -173,6 +181,8 @@ export function setupDuckPlayerForYouTube(selectors, playbackPaused, environment
173181
}
174182

175183
/**
184+
* Sets up Duck Player for a video player in the YouTube nocookie domain
185+
*
176186
* @param {DuckPlayerNativeSelectors} selectors
177187
* @param {Environment} environment
178188
* @param {DuckPlayerNativeMessages} messages
@@ -235,6 +245,8 @@ export function setupDuckPlayerForNoCookie(selectors, environment, messages) {
235245
}
236246

237247
/**
248+
* Sets up Duck Player events for the SERP
249+
*
238250
* @param {DuckPlayerNativeSelectors} selectors
239251
* @param {Environment} environment
240252
* @param {DuckPlayerNativeMessages} messages

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test-int-snapshots": "npm run test-int-snapshots --workspaces --if-present",
1818
"test-int-snapshots-update": "npm run test-int-snapshots-update --workspaces --if-present",
1919
"test-clean-tree": "npm run build && sh scripts/check-for-changes.sh",
20-
"docs": "npm cache clean --force && npm ci && typedoc",
20+
"docs": "typedoc",
2121
"docs-watch": "typedoc --watch",
2222
"tsc": "tsc",
2323
"tsc-watch": "tsc --watch",

0 commit comments

Comments
 (0)