Chrome extension unload event in background js

I have created a chrome extension that is bundled with the Native messaging app. The Native messaging application needs to know if the extension is unallocated or unloaded. Is there any event by which I can catch the extension being removed or unchecked? So I can send a message to my messaging app to notify

+3


source to share


1 answer


This can simply be detected if reading from STDIN fails while listening to messages from the browser in its own messaging host (for example, fread

returns no length of the buffer passed to). Google Chrome disables STDIN when it unloads an extension.



0


source







All Articles