V
V
Valery Orlov2019-10-25 12:23:47
JavaScript
Valery Orlov, 2019-10-25 12:23:47

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

1 answer(s)
N
Nadim Zakirov, 2019-10-25
@zkrvndm

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 question

Ask a Question

731 491 924 answers to any question