mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-09-11 21:47:09 +03:00
Fix major plugin version detection
This commit is contained in:
parent
cc0a39c2c4
commit
15f791edc0
@ -208,8 +208,8 @@ export class PluginListInstalledComponent implements OnInit {
|
||||
private isMajorUpgrade (plugin: PeerTubePlugin) {
|
||||
if (!plugin.latestVersion) return false
|
||||
|
||||
const latestMajor = plugin.latestVersion.split('.')[0]
|
||||
const currentMajor = plugin.version.split('.')[0]
|
||||
const latestMajor = parseInt(plugin.latestVersion.split('.')[0])
|
||||
const currentMajor = parseInt(plugin.version.split('.')[0])
|
||||
|
||||
return latestMajor > currentMajor
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user