(data)
| 79 | }, |
| 80 | |
| 81 | sendSlackMessage (data) { |
| 82 | try { |
| 83 | if (data.name == null) { data.name = typeof me !== 'undefined' && me !== null ? me.broadName() : undefined } |
| 84 | if (data.email == null) { data.email = typeof me !== 'undefined' && me !== null ? me.get('email') : undefined } |
| 85 | } catch (e) { |
| 86 | data.lookupError = e |
| 87 | } |
| 88 | const jqxhr = $.ajax({ type: 'POST', url: '/contact/slacklog', data }) |
| 89 | return new Promise(jqxhr.then) |
| 90 | } |
| 91 | } |
no test coverage detected