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
|
@ -10,7 +10,6 @@ import datetime from '../scripts/datetime';
|
|||
import DirectoryBrowser from '../components/directorybrowser/directorybrowser';
|
||||
import dialogHelper from '../components/dialogHelper/dialogHelper';
|
||||
import itemIdentifier from '../components/itemidentifier/itemidentifier';
|
||||
import { getWindowLocationSearch } from '../utils/url.ts';
|
||||
|
||||
export function getCurrentUser() {
|
||||
return window.ApiClient.getCurrentUser(false);
|
||||
|
@ -113,7 +112,7 @@ export function navigate(url, preserveQueryString) {
|
|||
throw new Error('url cannot be null or empty');
|
||||
}
|
||||
|
||||
const queryString = getWindowLocationSearch();
|
||||
const queryString = window.location.search;
|
||||
|
||||
if (preserveQueryString && queryString) {
|
||||
url += queryString;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue