Skip to content

Commit 39fcefd

Browse files
committed
fix: ignore reporting some errors
1 parent 11c9ac6 commit 39fcefd

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/app/home/course/course.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export class CoursePage implements OnInit, AfterViewInit, OnDestroy {
230230

231231
preventMouseEvent($event: MouseEvent) {
232232
// Prevent right-click only if video is downloadable
233-
if (this.currentVideo?.sources?.filter(s => s.path.endsWith('.mp4') || s.path.endsWith('.webm')).length > 0) {
233+
if (this.currentVideo?.sources?.filter(s => s.path?.endsWith('.mp4') || s.src?.endsWith('.mp4') || s.path?.endsWith('.webm')).length > 0) {
234234
$event.preventDefault();
235235
}
236236
}

src/app/man.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export interface Lecture {
212212
id?: number; // Server-side ID
213213
identifier?: string; // Client-side ID, deprecated
214214
sources: {
215-
path: string,
215+
path?: string,
216216
type: string,
217217
server: string | null,
218218
src: string

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ if (environment.production) {
2626
'NG04002', // Angular routing error a.k.a. 404
2727
// Benign Firebase Auth errors
2828
'auth/cancelled-popup-request', 'auth/popup-blocked', 'auth/popup-closed-by-user',
29+
'auth/network-request-failed', 'Pending promise was never set',
2930
// HTTP errors
30-
'[401]',
31+
' 401', ' 504',
3132
],
3233
});
3334
}

0 commit comments

Comments
 (0)