Move browserAction call

This commit is contained in:
lilia 2015-04-29 12:19:52 -07:00
parent 074bb66a4c
commit 6f3de68834
2 changed files with 2 additions and 4 deletions

View file

@ -65,8 +65,6 @@
});
});
extension.browserAction(window.openInbox);
// refresh views
var views = extension.windows.getViews();
for (var i = 0; i < views.length; ++i) {

View file

@ -110,7 +110,7 @@
/* Inbox window controller */
var inboxOpened = false;
var inboxWindowId = 0;
window.openInbox = function() {
extension.browserAction(function() {
if (inboxOpened === false) {
inboxOpened = true;
extension.windows.open({
@ -131,7 +131,7 @@
} else if (inboxOpened === true) {
extension.windows.focus(inboxWindowId);
}
};
});
// make sure windows are cleaned up on close
extension.windows.onClosed(function (windowId) {