Ejemplo n.º 1
0
 getAllPlugins = function() {
     Meteor.apply( 'getplugins', [],
         onResultReceived = function( err, result ) {
             plugins = []
             if ( typeof err == 'undefined' ) {
                 //console.log(result);
                 if ( result.statusCode == 200 ) {
                     plugins = result.data;
                 }
             } else {
                 console.log( err );
             }
             Session.set( 'plugins', plugins );
         } )
 };
 meteorContext.callMeteorMethod = (methodName, ...args) => Meteor.apply(methodName, args);