it is only available in Apps/Search, not in Search/Bgimage :/


On Wed, May 21, 2014 at 11:24 AM, Ran Ben Aharon
<notifications@github.com>wrote:

> In dev_apps/collection/js/view_collection.js:
>
> > +            icon: webapp.icon,
> > +            clipIcon: true
> > +          });
> > +        });
> > +
> > +        webapps.forEach(grid.add.bind(grid));
> > +        grid.render();
> > +      }, error)
> > +      .catch(fail);
> > +
> > +
> > +    eme.api.Search.bgimage({categoryId: categoryId, query: query})
> > +      .then(function success(bgResponse) {
> > +        var image = bgResponse.response.image;
> > +        if (image) {
> > +          var src = 'data:' + image.MIMEType + ';base64,' + image.data;
>
> The Partner API is capable of it when returnIconUrl:true so if typeof
> image === 'string' use it as is.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/EverythingMe/gaia/pull/20/files#r12885325>
> .
>



-- 
 <http://everything.me/>
Amir Nissim
Front End Developer, EverythingMe <http://everything.me/>
 amirn@everything.me <amirn@everything.me>  +972 52 6342974