V
V
Violetta2017-03-17 11:34:35
Google Chrome
Violetta, 2017-03-17 11:34:35

How to get number of chrome extension launches?

Tell me how you can implement saving the number of launches of the extension?
That is, the number of browser restarts?
It is obvious to take advantage of saving the variable in local.storage
but how to get information that the browser has been restarted?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
netW0rm, 2017-03-17
@netW0rm

If the extension is background page, then it starts when the browser starts, at the beginning of the script, update the counter in localStorage and that's it. If the extension is event page, then you can also do it somehow, write in the comments if you have an event page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question