From b325eb8139f82387e8a4efbe8c2449b60066b142 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 15 Jul 2017 16:10:28 -0700 Subject: [PATCH] GUACAMOLE-346: Require seek callback internally, for sake of simplicity. --- .../src/main/webapp/modules/SessionRecording.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/guacamole-common-js/src/main/webapp/modules/SessionRecording.js b/guacamole-common-js/src/main/webapp/modules/SessionRecording.js index a89bd7081..13daa96fa 100644 --- a/guacamole-common-js/src/main/webapp/modules/SessionRecording.js +++ b/guacamole-common-js/src/main/webapp/modules/SessionRecording.js @@ -325,7 +325,7 @@ Guacamole.SessionRecording = function SessionRecording(tunnel) { * The index of the frame which should become the new playback * position. * - * @param {function} [callback] + * @param {function} callback * The callback to invoke once the seek operation has completed. */ var seekToFrame = function seekToFrame(index, callback) { @@ -387,8 +387,7 @@ Guacamole.SessionRecording = function SessionRecording(tunnel) { else { // Notify that the requested seek has completed - if (callback) - callback(); + callback(); }