I am trying to extract all events (maximize, maximize, etc.). I have the appropriate code for this at this link How do I detect a window to minimize / increase an event in a Chrome extension? .
But the problem is when the switch tab (using alt + tab) of the listener window.chrome.onFocusChanged does not work.
My code is:
chrome.windows.onFocusChanged.addListener(function(windowId) {
console.log("focus change", windowId);
});
Is there a solution for this or ... is this a mistake?
source
share