Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
add_trash_icon() {
const type = 'System:Remove'
if (this.data.tools.find(x => x.type === type)) {
return
}
this.data.tools.push({
type, icon: Icons['trash.png']
})
}