mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-08 18:34:24 -04:00
Removed jquery from a few simple javascript files
This commit is contained in:
@@ -4,15 +4,13 @@
|
||||
window.NotifyModules['track-error'] = function() {
|
||||
|
||||
this.start = function(element) {
|
||||
var component = $(element);
|
||||
|
||||
// Track error to analytics if available
|
||||
if (window.NotifyModules && window.NotifyModules.analytics && window.NotifyModules.analytics.trackEvent) {
|
||||
window.NotifyModules.analytics.trackEvent(
|
||||
'Error',
|
||||
component.data('error-type'),
|
||||
element.dataset.errorType,
|
||||
{
|
||||
'label': component.data('error-label')
|
||||
'label': element.dataset.errorLabel
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user