Index: remoting/webapp/crd/js/hangout_session.js |
diff --git a/remoting/webapp/crd/js/hangout_session.js b/remoting/webapp/crd/js/hangout_session.js |
index 7776f156d57861c4b8bbda3b8d7d6207bf07a78e..ae139bd2c1b32c86d7d6a162ddc30550dc9827bc 100644 |
--- a/remoting/webapp/crd/js/hangout_session.js |
+++ b/remoting/webapp/crd/js/hangout_session.js |
@@ -43,16 +43,15 @@ remoting.HangoutSession.prototype.init = function() { |
}; |
/** |
- * @param {remoting.ClientSession.State} state |
+ * @param {remoting.ClientSession.State=} state |
*/ |
remoting.HangoutSession.prototype.onSessionStateChanged_ = function(state) { |
var State = remoting.ClientSession.State; |
try { |
this.port_.postMessage({method: 'sessionStateChanged', state: state}); |
- } catch (e) { |
+ } catch (/** @type {Error} */ error) { |
// postMessage will throw an exception if the port is disconnected. |
// We can safely ignore this exception. |
- var error = /** @type {Error} */ e; |
console.error(error); |
} finally { |
if (state === State.FAILED || state === State.CLOSED) { |
@@ -79,4 +78,4 @@ remoting.hangoutSessionEvents = new base.EventSource(); |
remoting.hangoutSessionEvents.sessionStateChanged = "sessionStateChanged"; |
remoting.hangoutSessionEvents.defineEvents( |
- [remoting.hangoutSessionEvents.sessionStateChanged]); |
+ [remoting.hangoutSessionEvents.sessionStateChanged]); |