We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6965279 commit c3cbc44Copy full SHA for c3cbc44
src/utils.ts
@@ -199,7 +199,7 @@ export default class Utils {
199
200
getSponsorIndexFromUUID(sponsorTimes: SponsorTime[], UUID: string): number {
201
for (let i = 0; i < sponsorTimes.length; i++) {
202
- if (sponsorTimes[i].UUID.startsWith(UUID) || UUID.startsWith(sponsorTimes[i].UUID)) {
+ if (sponsorTimes[i].UUID && (sponsorTimes[i].UUID.startsWith(UUID) || UUID.startsWith(sponsorTimes[i].UUID))) {
203
return i;
204
}
205
@@ -320,6 +320,7 @@ export default class Utils {
320
321
allDownvotes[hashedVideoID] = currentVideoData;
322
323
+ console.log(allDownvotes)
324
325
const entries = Object.entries(allDownvotes);
326
if (entries.length > 10000) {
0 commit comments