Prevent duplicate conversations and refocus on click (still buggy)

This commit is contained in:
Riley Shaw 2015-01-18 15:43:25 -10:00 committed by lilia
parent 7ec27f814f
commit 783a3f7c15
7 changed files with 116 additions and 21 deletions

View file

@ -225,4 +225,12 @@
extension.on('log', console.log.bind(console));
chrome.runtime.onConnect.addListener(function (port) {
if (port.name === 'panel_presence') {
port.onDisconnect.addListener(function (message) {
closeConversation(message.sender.tab.windowId);
});
}
});
})();