Skip to content

Commit 74dcfde

Browse files
authored
Merge pull request #500 from droberts-ctrlo/timeline-atob-fix
Removed buffer from timeline code
2 parents fd1d2e3 + 7a59691 commit 74dcfde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontend/components/timeline/lib/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ class TimelineComponent extends Component {
1717
initTimeline() {
1818
const $container = $(this.element).find('.timeline__visualization')
1919
const records_base64 = $container.data('records')
20-
const json = Buffer.from(records_base64, 'base64')
20+
const json = atob(records_base64)
2121
const dataset = JSON.parse(json)
2222
this.injectContrastingColor(dataset)
2323

2424
const items = new DataSet(dataset)
2525
let groups = $container.data('groups')
26-
const json_group = Buffer.from(groups, 'base64')
26+
const json_group = atob(groups)
2727
groups = JSON.parse(json_group)
2828
const is_dashboard = !!$container.data('dashboard')
2929
const layout_identifier = $('body').data('layout-identifier')

0 commit comments

Comments
 (0)