Window ids should be strings
A warning is issued when a non-string window id was passed to extension.windows.focus.
This commit is contained in:
@@ -114,7 +114,7 @@
|
|||||||
|
|
||||||
/* Inbox window controller */
|
/* Inbox window controller */
|
||||||
var inboxOpened = false;
|
var inboxOpened = false;
|
||||||
var inboxWindowId = 0;
|
var inboxWindowId = 'inbox';
|
||||||
window.openInbox = function() {
|
window.openInbox = function() {
|
||||||
if (inboxOpened === false) {
|
if (inboxOpened === false) {
|
||||||
inboxOpened = true;
|
inboxOpened = true;
|
||||||
|
Reference in New Issue
Block a user