mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Wrong undefined type check.
This commit is contained in:
parent
dde8755128
commit
d4a3e98fb3
1 changed files with 2 additions and 2 deletions
|
@ -817,14 +817,14 @@ app = Sammy('#main', function (sam) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Multilingual description
|
// Multilingual description
|
||||||
appData.manifest.arguments.install[k].label = (typeof appData.manifest.arguments.install[k].ask[y18n.locale] !== 'indefined') ?
|
appData.manifest.arguments.install[k].label = (typeof appData.manifest.arguments.install[k].ask[y18n.locale] !== 'undefined') ?
|
||||||
appData.manifest.arguments.install[k].ask[y18n.locale] :
|
appData.manifest.arguments.install[k].ask[y18n.locale] :
|
||||||
appData.manifest.arguments.install[k].ask['en']
|
appData.manifest.arguments.install[k].ask['en']
|
||||||
;
|
;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Multilingual description
|
// Multilingual description
|
||||||
appData.description = (typeof appData.manifest.description[y18n.locale] !== 'indefined') ?
|
appData.description = (typeof appData.manifest.description[y18n.locale] !== 'undefined') ?
|
||||||
appData.manifest.description[y18n.locale] :
|
appData.manifest.description[y18n.locale] :
|
||||||
appData.manifest.description['en']
|
appData.manifest.description['en']
|
||||||
;
|
;
|
||||||
|
|
Loading…
Add table
Reference in a new issue