From 96e19464f98b868bd93b76ac842ec5b32a17cfb6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 26 May 2018 15:58:21 +0200 Subject: means to run remote commands and get output --- app/client/live/player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/client/live') 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, -- cgit v1.2.3-70-g09d2