1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Simplify url utils

This commit is contained in:
Bill Thornton 2022-04-06 17:31:54 -04:00
parent 67169e2a6a
commit 3412201532
5 changed files with 8 additions and 30 deletions

View file

@ -12,7 +12,6 @@ import Dashboard from '../scripts/clientUtils';
import ServerConnections from './ServerConnections';
import alert from './alert';
import reactControllerFactory from './reactControllerFactory';
import { getWindowLocationSearch } from '../utils/url.ts';
class AppRouter {
allRoutes = [];
@ -121,7 +120,7 @@ class AppRouter {
const regexS = '[\\?&]' + name + '=([^&#]*)';
const regex = new RegExp(regexS, 'i');
const results = regex.exec(url || getWindowLocationSearch());
const results = regex.exec(url || window.location.search);
if (results == null) {
return '';
} else {