Fix invalid regex

This commit is contained in:
2026-01-03 16:28:23 +01:00
parent 847b3e69c1
commit 3118fea4f7

View File

@@ -58,7 +58,7 @@ function createWindow() {
const handleNavigation = (navigationUrl) => { const handleNavigation = (navigationUrl) => {
try { try {
const { pathname } = new URL(navigationUrl); const { pathname } = new URL(navigationUrl);
const isBroadcast = /\\/view\\/[^/]+\\/broadcast\\/?$/.test(pathname); const isBroadcast = /\/view\/[^/]+\/broadcast\/?$/.test(pathname);
if (isBroadcast) { if (isBroadcast) {
clearCanvasSizeInterval(); clearCanvasSizeInterval();