Index: remoting/webapp/app_remoting/js/ar_main.js |
diff --git a/remoting/webapp/app_remoting/js/ar_main.js b/remoting/webapp/app_remoting/js/ar_main.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2efe129e03ce323801c0e9814573cfe78edae02f |
--- /dev/null |
+++ b/remoting/webapp/app_remoting/js/ar_main.js |
@@ -0,0 +1,18 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+'use strict'; |
+ |
+/** @suppress {duplicate} */ |
+var remoting = remoting || {}; |
+ |
+/** |
+ * Entry point ('load' handler) for App Remoting webapp. |
+ */ |
+remoting.startAppRemoting = function() { |
+ remoting.app = new remoting.AppRemoting(remoting.app_capabilities()); |
+ remoting.app.start(); |
+}; |
+ |
+window.addEventListener('load', remoting.startAppRemoting, false); |