mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3717 from dmitrylyzo/resolution
(cherry picked from commit f1ff81884a
)
Signed-off-by: Bill Thornton <billt2006@gmail.com>
This commit is contained in:
parent
8d46c7bddc
commit
08c8907f5a
6 changed files with 80 additions and 6 deletions
|
@ -92,6 +92,19 @@ class AppSettings {
|
|||
return val ? parseInt(val) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set 'Maximum video width'
|
||||
* @param {number|undefined} val - Maximum video width or undefined.
|
||||
* @return {number} Maximum video width.
|
||||
*/
|
||||
maxVideoWidth(val) {
|
||||
if (val !== undefined) {
|
||||
return this.set('maxVideoWidth', val.toString());
|
||||
}
|
||||
|
||||
return parseInt(this.get('maxVideoWidth') || '0', 10) || 0;
|
||||
}
|
||||
|
||||
set(name, value, userId) {
|
||||
const currentValue = this.get(name, userId);
|
||||
AppStorage.setItem(this.#getKey(name, userId), value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue