Browser Extenstion
unread,Jan 17, 2021, 7:43:52 AM1/17/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, Kos, Browser Extenstion, wOxxOm, d3l...@gmail.com
The problem is more complicated.
chrome.runtime.getManifest().version shows you the current version, correct. But, it is not shows that extension was updated right now or not.
After extension updated this value will be the new version ever.
I'm asking about if
this "iteration" (current run).
I want to change some values only if the extension updated rigth now, and not every run when
chrome.runtime.getManifest().version === NEW_VERSION.
The problem is that chrome.runtime.onInstalled.addListener fires after the rest of the code has worked. I can wait until the listener return the value with Promise, but it works only if the update occured. If not the promise does not return nothing and the code stop running.