H
H
habrdima2015-10-18 20:26:37
JavaScript
habrdima, 2015-10-18 20:26:37

Chrome.browserAction is it possible to take an action when the popup closes?

if you click on any part of the browser, the popup will close, or even if you click again. I need a certain function to work if it happens

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
petyagrill, 2015-10-18
@petyagrill

Are you looking for it?

var background = chrome.extension.getBackgroundPage();
 
addEventListener("unload", function (event) {
    background.console.log(event.type);
}, true);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question