mirror of
https://github.com/imgfloat/server.git
synced 2026-11-05 06:44:08 +00:00
Fix invalid regex
This commit is contained in:
1 parent
847b3e69c1
commit
3118fea4f7
1 file changed
+1
-1
@@ -58,7 +58,7 @@ function createWindow() {
|
||||
const handleNavigation = (navigationUrl) => {
|
||||
try {
|
||||
const { pathname } = new URL(navigationUrl);
|
||||
const isBroadcast = /\\/view\\/[^/]+\\/broadcast\\/?$/.test(pathname);
|
||||
const isBroadcast = /\/view\/[^/]+\/broadcast\/?$/.test(pathname);
|
||||
|
||||
if (isBroadcast) {
|
||||
clearCanvasSizeInterval();
|
||||
|
||||
Reference in new issue
Block a user