Commit 515d9fc3 authored by Robert Knight's avatar Robert Knight

Adapt `events` export for ES modules

Move an `events` export from being a property of the default export to a
separate named export, which is more appropriate for ES modules.
parent eca91b43
const VIA_REFERRER = /^https:\/\/(qa-)?via.hypothes.is\//; const VIA_REFERRER = /^https:\/\/(qa-)?via.hypothes.is\//;
const events = { export const events = {
ANNOTATION_CREATED: 'annotationCreated', ANNOTATION_CREATED: 'annotationCreated',
ANNOTATION_DELETED: 'annotationDeleted', ANNOTATION_DELETED: 'annotationDeleted',
ANNOTATION_FLAGGED: 'annotationFlagged', ANNOTATION_FLAGGED: 'annotationFlagged',
...@@ -117,5 +117,3 @@ export default function analytics($window, settings) { ...@@ -117,5 +117,3 @@ export default function analytics($window, settings) {
events, events,
}; };
} }
analytics.events = events;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment