From 35f159a6cdca91e806c56ce8fe4b007228a24a73 Mon Sep 17 00:00:00 2001 From: Yuji Kanagawa Date: Mon, 20 Sep 2021 13:42:35 +0900 Subject: [PATCH] Remove an unused JS function --- mujoco_maze/websock_viewer.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mujoco_maze/websock_viewer.py b/mujoco_maze/websock_viewer.py index 647d5e1..5961016 100644 --- a/mujoco_maze/websock_viewer.py +++ b/mujoco_maze/websock_viewer.py @@ -30,15 +30,6 @@ HTML = """ console.log(url); image.src = url; } - function saveVideo() { - var xhr = new XMLHttpRequest(); - xhr.open('GET', 'https://via.placeholder.com/150', true); - xhr.responseType = 'blob'; - xhr.onerror = err => { - alert('Video is not ready'); - }; - xhr.send(); - }