diff --git a/tests/playback-ui.js b/tests/playback-ui.js index b5fac90f..c5197a40 100644 --- a/tests/playback-ui.js +++ b/tests/playback-ui.js @@ -47,7 +47,9 @@ function enableUI() { startButton.addEventListener('click', start); frames = VNC_frame_data; - encoding = VNC_frame_encoding; + // Only present in older recordings + if (window.VNC_frame_encoding) + encoding = VNC_frame_encoding; } const notification = function (rfb, mesg, level, options) {