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:
parent
67169e2a6a
commit
3412201532
5 changed files with 8 additions and 30 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue