VulpesOS/gaia/tests/jsmarionette/plugins/marionette-apps/lib/getself.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

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;