R
R
rogiivs2018-06-24 14:39:49
JavaScript
rogiivs, 2018-06-24 14:39:49

How to make that popup is not processed with each new browserAction?

Hello toast! Question to those who made extensions for Chrome. How to make the popup not processed every time the extension is clicked. For example, I clicked on the extension icon, a popup popped up, it was processed, let's say there is a news feed, suppose you scrolled up to 100500 news and accidentally clicked outside the extension window, it closed accordingly, you open it again, and the popup is reprocessed, that is, it shows in the wrong places on which it was closed, but on a new one. How to avoid it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
ProjectSoft, 2018-06-24
@rogiivs

Remember scroll position in localStorage.
When you close the browser - erase.
And the first popup render can also be saved.
This is all related to the logic of the JS extension
In the settings, make a checkbox because not everyone will like it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question