Answer the question
In order to leave comments, you need to log in
Which Javascript construct can only print an entry to the console the first time the Chrome extension is launched?
Good day.
I have an extension that works on all open sites.
It outputs a specific entry to the console:
How to ensure that the entry is output to the console only the first time the extension is launched (when the browser starts), and is ignored in all other cases? console.log("text");
Answer the question
In order to leave comments, you need to log in
That is, on each site, so that it only works once? Alternatively, store the state in local storage.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question