mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove getWindowLocationSearch global and duplicate implementation
This commit is contained in:
parent
891c63a3da
commit
8e66ba315a
5 changed files with 16 additions and 29 deletions
|
@ -12,6 +12,7 @@ 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 = [];
|
||||
|
@ -678,19 +679,6 @@ class AppRouter {
|
|||
};
|
||||
}
|
||||
|
||||
getWindowLocationSearch() {
|
||||
const currentPath = this.currentRouteInfo ? (this.currentRouteInfo.path || '') : '';
|
||||
|
||||
const index = currentPath.indexOf('?');
|
||||
let search = '';
|
||||
|
||||
if (index !== -1) {
|
||||
search = currentPath.substring(index);
|
||||
}
|
||||
|
||||
return search || '';
|
||||
}
|
||||
|
||||
showGuide() {
|
||||
Dashboard.navigate('livetv.html?tab=1');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue