Merge pull request #47 from opi/patch-1

Variable type "Undefined" is a string.
This commit is contained in:
Alexis Gavoty 2014-04-06 10:38:30 +02:00
commit 7afec6b3e6

View file

@ -39,7 +39,7 @@ $(document).ready(function () {
$.getJSON('/list.json', function(app_list) { $.getJSON('/list.json', function(app_list) {
console.log(app_list); console.log(app_list);
$.each(app_list, function(app_id, infos) { $.each(app_list, function(app_id, infos) {
if (typeof infos.manifest.description.fr === undefined) { if (typeof infos.manifest.description.fr === 'undefined') {
infos.manifest.description.fr = infos.manifest.description.en; infos.manifest.description.fr = infos.manifest.description.en;
} }
html = $('#app-template').html() html = $('#app-template').html()