parseInt on lag comp
This commit is contained in:
parent
619cecf660
commit
f72667754d
|
@ -268,7 +268,7 @@ export default {
|
|||
if (isNaN(user.time) || user.time === 0 || !user.time) {
|
||||
return this.getTimeFromMs(0)
|
||||
}
|
||||
return this.getTimeFromMs(user.time + this.difference)
|
||||
return this.getTimeFromMs(parseInt(user.time) + parseInt(this.difference))
|
||||
},
|
||||
getMax: function (user) {
|
||||
if (isNaN(user.maxTime)) {
|
||||
|
|
|
@ -57,7 +57,7 @@ module.exports = function PlexAuth () {
|
|||
'X-Plex-Product': 'SyncLounge',
|
||||
'X-Plex-Device-Vendor': sBrowser,
|
||||
'X-Plex-Platform-Version': '11.0',
|
||||
'Accept': 'application/json',
|
||||
Accept: 'text/xml,application/xml',
|
||||
'X-Plex-Http-Pipeline': 'infinite',
|
||||
'X-Plex-Token': token
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue