]> git.proxmox.com Git - mirror_novnc.git/blobdiff - core/display.js
Remove many small, obsolete, old browser hacks
[mirror_novnc.git] / core / display.js
index 8eaa8001cc60388892bdbe840388c5a3752c2829..01b1100bc0bbb8b5e167a9e63710ee46d1a1039b 100644 (file)
@@ -494,8 +494,7 @@ export default class Display {
                     this.blitImage(a.x, a.y, a.width, a.height, a.data, 0, true);
                     break;
                 case 'img':
-                    /* IE tends to set "complete" prematurely, so check dimensions */
-                    if (a.img.complete && (a.img.width !== 0) && (a.img.height !== 0)) {
+                    if (a.img.complete) {
                         if (a.img.width !== a.width || a.img.height !== a.height) {
                             Log.Error("Decoded image has incorrect dimensions. Got " +
                                       a.img.width + "x" + a.img.height + ". Expected " +