I believe you can take advantage of local storage. You can paste the version number in local storage, and for every run, you can check if the current version differs from the extension version in the storage. If it differs, you should what you want to show.
Matias Pelenur from the extension mailing list did the following function so you can get the version number: (Source: http://groups.google.com/group/chromium-extensions/browse_thread/thread/dbc13c03b57041f9 ) chrome.extension.getVersion = function() { if (!chrome.extension.version_) { var xhr = new XMLHttpRequest(); xhr.open("GET", chrome.extension.getURL('manifest.json'), false); xhr.onreadystatechange = function() { if (this.readyState == 4) { var manifest = JSON.parse(this.responseText); chrome.extension.version_ = manifest.version; } }; xhr.send(); } return chrome.extension.version_; } On Sat, Dec 5, 2009 at 11:57 PM, Teo [GD API Guru] <[email protected]>wrote: > Is there a way to do this right now? Specifically, i would want > something like this show what's new in the new version in the actual > UI of the extension.. (browser popup, etc.) > > Thanks, > Teo > > -- > > You received this message because you are subscribed to the Google Groups > "Chromium-extensions" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<chromium-extensions%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/chromium-extensions?hl=en. > > > -- - Mohamed Mansour -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.
