From 36b0096973cbcdfb00aa5f2562d075a70df6e4a0 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Fri, 2 Jan 2015 12:53:27 +0100 Subject: [PATCH] Add id to chrome.window api to remember position and size --- src/background.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/background.js b/src/background.js index db9f0fd..17d0cb3 100644 --- a/src/background.js +++ b/src/background.js @@ -10,9 +10,10 @@ chrome.app.runtime.onLaunched.addListener(function() { // open chrome app in new window chrome.app.window.create('index.html', { - 'bounds': { - 'width': 1280, - 'height': 800 + id: '0', + innerBounds: { + width: 1280, + height: 800 } }); });