Index: native_client_sdk/src/examples/demo/drive/background.js |
diff --git a/native_client_sdk/src/examples/resources/background.js b/native_client_sdk/src/examples/demo/drive/background.js |
similarity index 60% |
copy from native_client_sdk/src/examples/resources/background.js |
copy to native_client_sdk/src/examples/demo/drive/background.js |
index 1fc5a19b3ac8722945ca5283e58162ac9ccaa4d3..ea796ccfcf9a586f2e57cc048f3107c6a810b8db 100644 |
--- a/native_client_sdk/src/examples/resources/background.js |
+++ b/native_client_sdk/src/examples/demo/drive/background.js |
@@ -2,12 +2,10 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-function onLaunched(launchData) { |
+"use strict"; |
+ |
+chrome.app.runtime.onLaunched.addListener(function () { |
chrome.app.window.create('index.html', { |
- width: 1024, |
- height: 800, |
- frame: 'none' |
+ 'bounds': {'width': 800, 'height': 600} |
}); |
-} |
- |
-chrome.app.runtime.onLaunched.addListener(onLaunched); |
+}); |