diff --git a/blueocean-rest-impl/src/main/webapp/scripts/analytics.js b/blueocean-rest-impl/src/main/webapp/scripts/analytics.js index 1ef6e629e5..84a550dea7 100644 --- a/blueocean-rest-impl/src/main/webapp/scripts/analytics.js +++ b/blueocean-rest-impl/src/main/webapp/scripts/analytics.js @@ -5,8 +5,7 @@ window.addEventListener('load', function() { headers: crumb.wrap({ 'Content-Type': 'application/json' }), - // TODO simplify when Prototype.js is removed - body: Object.toJSON ? Object.toJSON(eventData) : JSON.stringify(eventData) + body: JSON.stringify(eventData) }).then(function(rsp) { if (!rsp.ok) { console.error('Could not send pageview event');