Handle new style recordings

Newer recordings are always binary and don't include the encoding
specifier.
This commit is contained in:
Pierre Ossman 2017-09-05 14:31:10 +02:00
parent d1a1e0e529
commit b05a7b1dcf
1 changed files with 3 additions and 1 deletions

View File

@ -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) {