mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-13 00:02:53 +02: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:
@@ -96,7 +96,12 @@ class DeviceInfo {
|
|||||||
this.clientVersion = stripAllTags(clientDeviceInfo?.clientVersion) || serverVersion
|
this.clientVersion = stripAllTags(clientDeviceInfo?.clientVersion) || serverVersion
|
||||||
this.manufacturer = stripAllTags(clientDeviceInfo?.manufacturer) || null
|
this.manufacturer = stripAllTags(clientDeviceInfo?.manufacturer) || null
|
||||||
this.model = stripAllTags(clientDeviceInfo?.model) || 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
|
this.clientName = stripAllTags(clientDeviceInfo?.clientName) || null
|
||||||
if (this.sdkVersion) {
|
if (this.sdkVersion) {
|
||||||
|
|||||||
Reference in New Issue
Block a user