mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Refactoring duplicates code
This commit is contained in:
parent
368a6064c2
commit
cf137497a0
20 changed files with 491 additions and 513 deletions
|
@ -467,11 +467,17 @@ export class UserSettings {
|
|||
return this.get('soundeffects', false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef {Object} Query
|
||||
* @property {number} StartIndex - query StartIndex.
|
||||
* @property {number} Limit - query Limit.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Load query settings.
|
||||
* @param {string} key - Query key.
|
||||
* @param {Object} query - Query base.
|
||||
* @return {Object} Query.
|
||||
* @return {Query} Query.
|
||||
*/
|
||||
loadQuerySettings(key, query) {
|
||||
let values = this.get(key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue