mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-08-26 05:07:23 -05:00
Fix major plugin version detection
This commit is contained in:
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user