Index: remoting/webapp/session_connector.js |
diff --git a/remoting/webapp/session_connector.js b/remoting/webapp/session_connector.js |
index 6d6e92b05d3545cc8450c624d2c43037467b1fa0..04fe425e21634d38e4dd7579a1ed8f8d9f8c30f5 100644 |
--- a/remoting/webapp/session_connector.js |
+++ b/remoting/webapp/session_connector.js |
@@ -371,7 +371,7 @@ remoting.SessionConnector.prototype.connectSignaling_ = function() { |
// Only use XMPP when TCP API is available and TLS support is enabled. That's |
// not the case for V1 app (socket API is available only to platform apps) |
// and for Chrome releases before 38. |
- if (chrome.socket.secure) { |
+ if (chrome.socket && chrome.socket.secure) { |
this.signalStrategy_ = /** @type {remoting.SignalStrategy} */ |
(new remoting.XmppConnection(this.onSignalingState_.bind(this))); |
} else { |