Skip to content

Commit

Permalink
Removed buffer from timeline code
Browse files Browse the repository at this point in the history
Buffer was still present in timeline code - this has been removed in favour of preferred `atob` method
  • Loading branch information
droberts-ctrlo committed Dec 6, 2024
1 parent fd1d2e3 commit 7a59691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/components/timeline/lib/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class TimelineComponent extends Component {
initTimeline() {
const $container = $(this.element).find('.timeline__visualization')
const records_base64 = $container.data('records')
const json = Buffer.from(records_base64, 'base64')
const json = atob(records_base64)
const dataset = JSON.parse(json)
this.injectContrastingColor(dataset)

const items = new DataSet(dataset)
let groups = $container.data('groups')
const json_group = Buffer.from(groups, 'base64')
const json_group = atob(groups)
groups = JSON.parse(json_group)
const is_dashboard = !!$container.data('dashboard')
const layout_identifier = $('body').data('layout-identifier')
Expand Down

0 comments on commit 7a59691

Please sign in to comment.