Fix VNC connection issue: correct corrupted base64.js file

- Fix Base64 object definition in wssshd2/templates/novnc/base64.js
- Change 'window.{' to 'window.Base64 = {' to properly define global Base64 object
- This resolves ReferenceError when decoding JPEG rectangles in Tight encoding
- VNC connections now establish successfully instead of disconnecting immediately
parent c1ba79e1
...@@ -4,9 +4,8 @@ ...@@ -4,9 +4,8 @@
// From: http://hg.mozilla.org/mozilla-central/raw-file/ec10630b1a54/js/src/devtools/jint/sunspider/string-base64.js // From: http://hg.mozilla.org/mozilla-central/raw-file/ec10630b1a54/js/src/devtools/jint/sunspider/string-base64.js
import * as Log from './util/logging.js';
export default { window.Base64 = {
/* Convert data (an array of integers) to a Base64 string. */ /* Convert data (an array of integers) to a Base64 string. */
toBase64Table: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='.split(''), toBase64Table: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='.split(''),
base64Pad: '=', base64Pad: '=',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment