Answer the question
In order to leave comments, you need to log in
Chrome extensions. How to track application close event?
The only thing I found about this is tracking the closing of the connection, but I can not get it to work properly. The code is executed immediately after the extension is opened, not when it is closed.
var port = chrome.extension.connect();
port.onDisconnect.addListener(function(){
alert('Closing extenstion');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question