]> git.proxmox.com Git - mirror_novnc.git/blobdiff - tests/playback-ui.js
Move localization.js to app
[mirror_novnc.git] / tests / playback-ui.js
index 03b08fe15132b91b60048013201a37a130672b5f..01ad241e9ca12526f84b144468b82845a8eb0e0c 100644 (file)
@@ -115,13 +115,13 @@ IterationPlayer.prototype = {
         this._nextIteration();
     },
 
-    _disconnected: function (rfb, reason, frame) {
-        if (reason) {
+    _disconnected: function (rfb, clean, frame) {
+        if (!clean) {
             this._state = 'failed';
         }
 
         var evt = new Event('rfbdisconnected');
-        evt.reason = reason;
+        evt.clean = clean;
         evt.frame = frame;
 
         this.onrfbdisconnected(evt);