X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;fp=www%2Fjs%2Fremoteglot.js;h=e14fffa2b81394d6c63645182414e7ca1a142119;hp=ae522e26113c9869d61ef81d47bce9d4f046c4d7;hb=b4498c56489f3accf18014c17b771fa61e7888b9;hpb=18cc671e78bcf74545535ab2ab7e4dc0ef3b6b58 diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index ae522e2..e14fffa 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -2482,6 +2482,11 @@ function init() { document.getElementById("board").addEventListener('mousedown', mousedownSquare); document.getElementById("board").addEventListener('mouseup', mouseupSquare); + if (window['inline_json']) { + let j = window['inline_json']; + process_update_response(j['data'], { 'get': (h) => j['headers'][h] }); + delete window['inline_json']; + } request_update(); window.addEventListener('resize', function() { board.resize();