Move browserAction call
This commit is contained in:
parent
074bb66a4c
commit
6f3de68834
2 changed files with 2 additions and 4 deletions
|
@ -65,8 +65,6 @@
|
|||
});
|
||||
});
|
||||
|
||||
extension.browserAction(window.openInbox);
|
||||
|
||||
// refresh views
|
||||
var views = extension.windows.getViews();
|
||||
for (var i = 0; i < views.length; ++i) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue