mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 03:39:26 +00:00
Fix invalid regex
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user