Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
16 lines
361 B
JavaScript
Executable file
16 lines
361 B
JavaScript
Executable file
'use strict';
|
|
/**
|
|
* Returns information about the current app.
|
|
*
|
|
* apps.getSelf(apps, function(err, app) {
|
|
* app.origin; // origin of a given app
|
|
* });
|
|
*
|
|
* @param {Apps} apps state.
|
|
* @param {Function} callback [Err err, <App> app].
|
|
*/
|
|
function getSelf(apps, callback) {
|
|
return apps.getSelf(callback);
|
|
}
|
|
|
|
module.exports.getSelf = getSelf;
|