mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix floating promises in ts files
This commit is contained in:
parent
aaac4883e3
commit
eedd40159c
25 changed files with 250 additions and 47 deletions
|
@ -107,6 +107,12 @@ export function getConfigurationResourceUrl(name) {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigate to a url.
|
||||
* @param {string} url - The url to navigate to.
|
||||
* @param {boolean} [preserveQueryString] - A flag to indicate the current query string should be appended to the new url.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
export function navigate(url, preserveQueryString) {
|
||||
if (!url) {
|
||||
throw new Error('url cannot be null or empty');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue