diff --git a/ui/public/replay-page.html b/ui/public/replay-page.html index 1140bae..bfe3963 100755 --- a/ui/public/replay-page.html +++ b/ui/public/replay-page.html @@ -6,7 +6,8 @@
- + \ No newline at end of file diff --git a/ui/public/replay-page.js b/ui/public/replay-page.js new file mode 100644 index 0000000..6b6f961 --- /dev/null +++ b/ui/public/replay-page.js @@ -0,0 +1,10 @@ +const fileId = localStorage.getItem('fileId') +const token = localStorage.getItem('replayToken') +var headers = new Headers({ + Authorization: 'Bearer ' + token +}) +var req = new Request(`/terminal/v1/session-records/${fileId}/file`, { method: 'GET', headers: headers, mode: 'cors' }) +const div = document.getElementById('app') +// eslint-disable-next-line no-undef +const player = new XtermPlayer.XtermPlayer(req, div) +console.log(player)