Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.clear = function (context) {
logs = []
return logs
}
// Init
{
const context = getContext()
events.on('log', log => {
exports.add(log, context)
})
exports.add({
type: 'info',
tag: null,
message: generateTitle(true)
}, context)
}