From ab94a7c05a495c1d8f9ea30e2268bbc72f17b303 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 20 Jun 2015 00:50:22 +0200 Subject: [PATCH] Fix another bug with sound play with JSON deltas they are applied in-place). --- www/js/remoteglot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index d666342..43b2e1d 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -139,7 +139,8 @@ var request_update = function() { var num_viewers = xhr.getResponseHeader('X-RGNV'); var new_data; if (Array.isArray(data)) { - new_data = JSON_delta.patch(current_analysis_data, data); + new_data = JSON.parse(JSON.stringify(current_analysis_data)); + JSON_delta.patch(new_data, data); } else { new_data = data; } -- 2.39.2