Fix names of recording variables
The name of these variables must match how they were set when the recording was created. Reverts part of 95632e413d75030c49577c0e5cf1003208a5ba09
This commit is contained in:
committed by
Lauri Kasanen
parent
4bc4c1d7f6
commit
d3c9ff8b12
@@ -1,4 +1,4 @@
|
||||
/* global vncFrameData, vncFrameEncoding */
|
||||
/* global VNC_frame_data, VNC_frame_encoding */
|
||||
|
||||
import * as WebUtil from '../app/webutil.js';
|
||||
import RecordingPlayer from './playback.js';
|
||||
@@ -41,7 +41,7 @@ function enableUI() {
|
||||
document.getElementById('mode1').checked = true;
|
||||
}
|
||||
|
||||
message("Loaded " + vncFrameData.length + " frames");
|
||||
message("Loaded " + VNC_frame_data.length + " frames");
|
||||
|
||||
const startButton = document.getElementById('startButton');
|
||||
startButton.disabled = false;
|
||||
@@ -49,12 +49,12 @@ function enableUI() {
|
||||
|
||||
message("Converting...");
|
||||
|
||||
frames = vncFrameData;
|
||||
frames = VNC_frame_data;
|
||||
|
||||
let encoding;
|
||||
// Only present in older recordings
|
||||
if (window.vncFrameEncoding) {
|
||||
encoding = vncFrameEncoding;
|
||||
if (window.VNC_frame_encoding) {
|
||||
encoding = VNC_frame_encoding;
|
||||
} else {
|
||||
let frame = frames[0];
|
||||
let start = frame.indexOf('{', 1) + 1;
|
||||
|
||||
Reference in New Issue
Block a user