summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/client_session.js
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/webapp/client_session.js')
-rw-r--r--remoting/webapp/client_session.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js
index bbc428a..2dc2e9c 100644
--- a/remoting/webapp/client_session.js
+++ b/remoting/webapp/client_session.js
@@ -111,9 +111,9 @@ remoting.ClientSession = function(hostJid, clientJid, hostPublicKey, accessCode,
if (this.mode == remoting.ClientSession.Mode.IT2ME) {
// Resize-to-client is not supported for IT2Me hosts.
- this.resizeToClientButton_.parentNode.removeChild(
- this.resizeToClientButton_);
+ this.resizeToClientButton_.hidden = true;
} else {
+ this.resizeToClientButton_.hidden = false;
this.resizeToClientButton_.addEventListener(
'click', this.callSetScreenMode_, false);
}