Merge pull request #583 from kanaka/bug/misc-fixes
Misc Fixes (ImageData Constructor Detection and Firefox Nightly Bug Workaround)
This commit is contained in:
commit
61e38102c3
@ -17,7 +17,7 @@ var Display;
|
||||
|
||||
var SUPPORTS_IMAGEDATA_CONSTRUCTOR = false;
|
||||
try {
|
||||
new ImageData(new Uint8ClampedArray(1), 1, 1);
|
||||
new ImageData(new Uint8ClampedArray(4), 1, 1);
|
||||
SUPPORTS_IMAGEDATA_CONSTRUCTOR = true;
|
||||
} catch (ex) {
|
||||
// ignore failure
|
||||
|
@ -1165,14 +1165,7 @@ var RFB;
|
||||
|
||||
this._timing.last_fbu = (new Date()).getTime();
|
||||
|
||||
var handler = this._encHandlers[this._FBU.encoding];
|
||||
try {
|
||||
//ret = this._encHandlers[this._FBU.encoding]();
|
||||
ret = handler();
|
||||
} catch (ex) {
|
||||
console.log("missed " + this._FBU.encoding + ": " + handler);
|
||||
ret = this._encHandlers[this._FBU.encoding]();
|
||||
}
|
||||
|
||||
now = (new Date()).getTime();
|
||||
this._timing.cur_fbu += (now - this._timing.last_fbu);
|
||||
|
Loading…
Reference in New Issue
Block a user