web-analyst
Version:
Web Analyst is a simple back-end tracking system to measure your web app performance.
25 lines (21 loc) • 519 B
JavaScript
const getPluginOptions = function ({session, pluginName, loggable})
{
try
{
const plugins = session.plugins;
for (let i = 0; i < plugins.length; ++i)
{
const plugin = plugins[i];
if (plugin.name === pluginName)
{
return plugin;
}
}
}
catch (e)
{
loggable.error({lid: "WA7549"}, e.message);
}
return null;
};
module.exports.getPluginOptions = getPluginOptions;