fix plugin version parsing

This commit is contained in:
antelle 2017-05-25 19:41:06 +02:00
parent ce916a5750
commit 2af53d108b
1 changed files with 2 additions and 2 deletions

View File

@ -99,10 +99,10 @@ const SettingsPluginsView = Backbone.View.extend({
if (plugin.manifest.desktop && !RuntimeInfo.launcher) {
return false;
}
if (plugin.manifest.versionMin && SemVer.compareVersions(plugin.manufest.versionMin, RuntimeInfo.version) > 0) {
if (plugin.manifest.versionMin && SemVer.compareVersions(plugin.manifest.versionMin, RuntimeInfo.version) > 0) {
return false;
}
if (plugin.manifest.versionMax && SemVer.compareVersions(plugin.manufest.versionMax, RuntimeInfo.version) > 0) {
if (plugin.manifest.versionMax && SemVer.compareVersions(plugin.manifest.versionMax, RuntimeInfo.version) > 0) {
return false;
}
return true;