1
0
Fork 0
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:
grafixeyehero 2022-08-21 03:09:22 +03:00
parent 368a6064c2
commit cf137497a0
20 changed files with 491 additions and 513 deletions

View file

@ -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);