Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2838,11 +2838,11 @@ export class App {

private toggleFullscreen(): void {
if (document.fullscreenElement) {
void document.exitFullscreen().catch(() => {});
try { void document.exitFullscreen()?.catch(() => {}); } catch {}
} else {
const el = document.documentElement as HTMLElement & { webkitRequestFullscreen?: () => void };
if (el.requestFullscreen) {
void el.requestFullscreen().catch(() => {});
try { void el.requestFullscreen()?.catch(() => {}); } catch {}
} else if (el.webkitRequestFullscreen) {
try { el.webkitRequestFullscreen(); } catch {}
}
Expand Down
8 changes: 7 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Sentry.init({
/requestFullscreen/,
/webkitEnterFullscreen/,
/vc_text_indicators_context/,
/Program failed to link: null/,
/Program failed to link/,
/too much recursion/,
/zaloJSV2/,
/Java bridge method invocation error/,
Expand All @@ -61,6 +61,7 @@ Sentry.init({
/Unexpected end of input/,
/window\.android\.\w+ is not a function/,
/Attempted to assign to readonly property/,
/Cannot assign to read only property/,
/FetchEvent\.respondWith/,
/e\.toLowerCase is not a function/,
/\.trim is not a function/,
Expand All @@ -81,6 +82,11 @@ Sentry.init({
/Style is not done loading/,
/Event `CustomEvent`.*captured as promise rejection/,
/getProgramInfoLog/,
/__firefox__/,
/ifameElement\.contentDocument/,
/Invalid video id/,
/Fetch is aborted/,
/Stylesheet append timeout/,
],
beforeSend(event) {
const msg = event.exception?.values?.[0]?.value ?? '';
Expand Down
13 changes: 13 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,14 +535,27 @@ export default defineConfig({
{
urlPattern: /^https?:\/\/.*\/api\/.*/i,
handler: 'NetworkOnly',
method: 'GET',
},
{
urlPattern: /^https?:\/\/.*\/api\/.*/i,
handler: 'NetworkOnly',
method: 'POST',
},
{
urlPattern: /^https?:\/\/.*\/ingest\/.*/i,
handler: 'NetworkOnly',
method: 'GET',
},
{
urlPattern: /^https?:\/\/.*\/ingest\/.*/i,
handler: 'NetworkOnly',
method: 'POST',
},
{
urlPattern: /^https?:\/\/.*\/rss\/.*/i,
handler: 'NetworkOnly',
method: 'GET',
},
{
urlPattern: /^https:\/\/api\.maptiler\.com\//,
Expand Down