| Index: remoting/webapp/me2mom/remoting.js
|
| diff --git a/remoting/webapp/me2mom/remoting.js b/remoting/webapp/me2mom/remoting.js
|
| index 8dead6e44c7a901e9d2986e6dcc7ddd723bdf34a..b96da60a134de8b39eef8c2deaf657ad3d85cf8a 100644
|
| --- a/remoting/webapp/me2mom/remoting.js
|
| +++ b/remoting/webapp/me2mom/remoting.js
|
| @@ -47,6 +47,21 @@ remoting.init = function() {
|
| document.getElementById('current-email').innerText = email;
|
| }
|
|
|
| + window.addEventListener('blur', pluginLostFocus_, false);
|
| +
|
| + // Parse URL parameters.
|
| + var urlParams = getUrlParameters();
|
| + if ('mode' in urlParams) {
|
| + if (urlParams['mode'] == 'me2me') {
|
| + var hostJid = urlParams['hostJid'];
|
| + var hostPublicKey = urlParams['hostPublicKey'];
|
| + var hostName = urlParams['hostName'];
|
| + remoting.connectHost(hostJid, hostPublicKey, hostName);
|
| + return;
|
| + }
|
| + }
|
| +
|
| + // No valid URL parameters, start up normally.
|
| remoting.setMode(getAppStartupMode_());
|
| if (isHostModeSupported_()) {
|
| var noShare = document.getElementById('chrome-os-no-share');
|
| @@ -55,8 +70,6 @@ remoting.init = function() {
|
| var button = document.getElementById('share-button');
|
| button.disabled = true;
|
| }
|
| -
|
| - window.addEventListener('blur', pluginLostFocus_, false);
|
| }
|
|
|
| remoting.cancelPendingOperation = function() {
|
|
|