| Index: remoting/webapp/background/background.js
|
| diff --git a/remoting/webapp/background/background.js b/remoting/webapp/background/background.js
|
| index 70f4020b521f35094cb0ac48712287374d216c05..8c32589ad83a6e0c432aadeaf69210bc344f9607 100644
|
| --- a/remoting/webapp/background/background.js
|
| +++ b/remoting/webapp/background/background.js
|
| @@ -60,15 +60,19 @@ function initializeBackgroundService(appLauncher) {
|
| }
|
|
|
| function main() {
|
| - /** @type {remoting.AppLauncher} */
|
| - var appLauncher = new remoting.V1AppLauncher();
|
| if (base.isAppsV2()) {
|
| appLauncher = new remoting.V2AppLauncher();
|
| initializeAppV2(appLauncher);
|
| }
|
| - initializeBackgroundService(appLauncher);
|
| }
|
|
|
| +remoting.enableHangoutsRemoteAssistance = function() {
|
| + /** @type {remoting.AppLauncher} */
|
| + var appLauncher = base.isAppsV2() ? new remoting.V1AppLauncher():
|
| + new remoting.V2AppLauncher();
|
| + initializeBackgroundService(appLauncher);
|
| +};
|
| +
|
| window.addEventListener('load', main, false);
|
|
|
| }());
|
|
|