K
K
KamishiroIyamoto2021-11-19 19:19:08
JavaScript
KamishiroIyamoto, 2021-11-19 19:19:08

How do I stop a Chrome extension from closing?

Good evening, I wrote an extension for Google Chrome, which can only work when the extension is open, i.e. if you click somewhere in the browser, it will close and stop working in the middle of the process.
Question: how to make sure that the extension is not closed when clicking on a third-party area or that the script continues to work when the extension is closed (minimized)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nadim Zakirov, 2021-11-19
@zkrvndm

You can start a background.js background process and do all the operations there, then your script will continue to work even if the extension's popup window is closed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question