summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/me2mom/remoting_session.js
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/webapp/me2mom/remoting_session.js')
-rw-r--r--remoting/webapp/me2mom/remoting_session.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/remoting/webapp/me2mom/remoting_session.js b/remoting/webapp/me2mom/remoting_session.js
index 8a605dd..1a2629e 100644
--- a/remoting/webapp/me2mom/remoting_session.js
+++ b/remoting/webapp/me2mom/remoting_session.js
@@ -55,8 +55,8 @@ function registerConnection() {
var clientjid = xhr.responseText;
remoting.plugin.sendIq = sendIq;
- remoting.plugin.connectSandboxed(clientjid, remoting.hostjid,
- remoting.accessCode);
+ remoting.plugin.connect(remoting.hostjid, clientjid,
+ remoting.accessCode);
// TODO(ajwong): This should just be feedIq();
window.setTimeout(feedIq, 1000);
} else {
@@ -123,8 +123,8 @@ function init() {
if (remoting.connectMethod == 'sandboxed') {
registerConnection();
} else {
- plugin.connect(remoting.username, remoting.hostjid,
- remoting.xmppAuthToken, remoting.accessCode);
+ plugin.connectUnsandboxed(remoting.hostjid, remoting.username,
+ remoting.xmppAuthToken, remoting.accessCode);
}
} else {
addToDebugLog('ERROR: remoting plugin not loaded');