Skip to content

Commit

Permalink
fix: ignore reporting some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
keenthekeen committed Jan 16, 2025
1 parent 11c9ac6 commit 39fcefd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/home/course/course.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export class CoursePage implements OnInit, AfterViewInit, OnDestroy {

preventMouseEvent($event: MouseEvent) {
// Prevent right-click only if video is downloadable
if (this.currentVideo?.sources?.filter(s => s.path.endsWith('.mp4') || s.path.endsWith('.webm')).length > 0) {
if (this.currentVideo?.sources?.filter(s => s.path?.endsWith('.mp4') || s.src?.endsWith('.mp4') || s.path?.endsWith('.webm')).length > 0) {
$event.preventDefault();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/man.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export interface Lecture {
id?: number; // Server-side ID
identifier?: string; // Client-side ID, deprecated
sources: {
path: string,
path?: string,
type: string,
server: string | null,
src: string
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ if (environment.production) {
'NG04002', // Angular routing error a.k.a. 404
// Benign Firebase Auth errors
'auth/cancelled-popup-request', 'auth/popup-blocked', 'auth/popup-closed-by-user',
'auth/network-request-failed', 'Pending promise was never set',
// HTTP errors
'[401]',
' 401', ' 504',
],
});
}
Expand Down

0 comments on commit 39fcefd

Please sign in to comment.