diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-26 15:58:21 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-26 15:58:21 +0200 |
| commit | 96e19464f98b868bd93b76ac842ec5b32a17cfb6 (patch) | |
| tree | a232cfecd631d49fae8d1402371a284296aeec87 /app/client/live | |
| parent | 28f4bd59314df8162548a1100b280bd256436eaa (diff) | |
means to run remote commands and get output
Diffstat (limited to 'app/client/live')
| -rw-r--r-- | app/client/live/player.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/client/live/player.js b/app/client/live/player.js index ac5f0c8..808e79e 100644 --- a/app/client/live/player.js +++ b/app/client/live/player.js @@ -37,7 +37,7 @@ export function onFrame (data) { const blob = new Blob([data.frame], { type: 'image/jpg' }) const url = URL.createObjectURL(blob) const img = new Image () - img.onload = function() { + img.onload = () => { img.onload = null last_frame = data.meta URL.revokeObjectURL(url) @@ -54,7 +54,7 @@ export function onFrame (data) { } if (saving) { saving = false - canvas.toBlob(function(blob) { + canvas.toBlob(blob => { store.dispatch({ type: types.player.save_frame, blob: blob, |
