mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-16 16:31:30 +00:00
Fix android device sdkVersion not handling it using number type, causing android session device names to show as iOS
This commit is contained in:
parent
eee377e081
commit
c010f0e1eb
1 changed files with 6 additions and 1 deletions
|
|
@ -96,7 +96,12 @@ class DeviceInfo {
|
|||
this.clientVersion = stripAllTags(clientDeviceInfo?.clientVersion) || serverVersion
|
||||
this.manufacturer = stripAllTags(clientDeviceInfo?.manufacturer) || null
|
||||
this.model = stripAllTags(clientDeviceInfo?.model) || null
|
||||
this.sdkVersion = stripAllTags(clientDeviceInfo?.sdkVersion) || null
|
||||
|
||||
if (typeof clientDeviceInfo?.sdkVersion === 'number') {
|
||||
this.sdkVersion = clientDeviceInfo.sdkVersion.toString()
|
||||
} else {
|
||||
this.sdkVersion = stripAllTags(clientDeviceInfo?.sdkVersion) || null
|
||||
}
|
||||
|
||||
this.clientName = stripAllTags(clientDeviceInfo?.clientName) || null
|
||||
if (this.sdkVersion) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue