Caret/js/main.js
2013-08-31 13:23:41 -07:00

11 lines
No EOL
284 B
JavaScript

require(["keys", "sessions", "menus"], function() {
var frame = chrome.app.window.current();
//store window dimensions on resize
frame.onBoundsChanged.addListener(function() {
var bounds = frame.getBounds();
chrome.storage.local.set({bounds: bounds});
});
});