Skip to content

Commit

Permalink
Add TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed Dec 22, 2023
1 parent 89f0bd7 commit 7c9ed15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/page/getFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function getFetch(options: FetchOptions): typeof fetch {
const videoWeaverUrlsToFlag = new Map<string, number>(); // Video Weaver URLs to flag -> number of times flagged.
const videoWeaverUrlsToIgnore = new Set<string>(); // No response check.

// TODO: Again, what happens when the user navigates to another channel?
let cachedPlaybackTokenRequestHeaders: Map<string, string> | null = null;
let cachedPlaybackTokenRequestBody: string | null = null;
let cachedUsherRequestUrl: string | null = null;
Expand Down Expand Up @@ -208,6 +209,7 @@ export function getFetch(options: FetchOptions): typeof fetch {

// Video Weaver requests.
if (host != null && videoWeaverHostRegex.test(host)) {
// TODO: Implement replacement limit if the ad is a preroll to avoid infinite loops.
let videoWeaverUrl = url;
if (replacementVideoWeaverUrls != null) {
// const index = currentVideoWeaverUrls?.findIndex(
Expand Down

0 comments on commit 7c9ed15

Please sign in to comment.