~abreu-alexandre/unity-webapps-qml/content-hub-getpeers-failure-14-10

« back to all changes in this revision

Viewing changes to examples/api-bindings/online-accounts/www/js/app.js

  • Committer: Alexandre Abreu
  • Date: 2014-05-09 13:17:09 UTC
  • mto: This revision was merged to the branch mainline in revision 116.
  • Revision ID: alexandre.abreu@canonical.com-20140509131709-6g9z2qqjgrks9wj6
add filtering param to getProviders

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    var api = external.getUnityObject('1.0');
5
5
    var oa = api.OnlineAccounts;
6
6
 
7
 
    oa.api.getProviders(function(providers) {
 
7
    oa.api.getProviders({"applicationId": "webbrowser-app"}, function(providers) {
8
8
        var ul = document.querySelector('#providers ul');
9
9
 
10
10
        for (var i = 0; i < providers.length; ++i) {