Skip to content

Commit 61a3efb

Browse files
author
Shane Osbourne
committed
linting
1 parent 271c31f commit 61a3efb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

inject/apple.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ function initCode () {
4646
}
4747
}
4848

49+
// @ts-expect-error https://app.asana.com/0/1201614831475344/1203979574128023/f
4950
const processedConfig = processConfig(config, $USER_UNPROTECTED_DOMAINS$, $USER_PREFERENCES$)
5051
if (isGloballyDisabled(processedConfig)) {
5152
return

src/features/duckplayer/overlays.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export async function initOverlays (environment, comms) {
291291
}
292292

293293
// select either closest `a` or defer to element.href
294-
const targetValue = event.target.closest('a')?.href || element.href
294+
const targetValue = event.target.closest('a')?.href || /** @type {HTMLAnchorElement} */(element).href
295295
const validPrivatePlayerUrl = VideoParams.fromHref(targetValue)?.toPrivatePlayerUrl()
296296

297297
if (validPrivatePlayerUrl) {

0 commit comments

Comments
 (0)