2

I want to read the app version stored in manifest.json:

...
"version": "0.1.0",
...

during the execution of the app (really just after loading) to display the app version. I also do NOT want to have the version in multiple places because it can get out of sync. Is there a way to read fields of the manifest while the app is executing?

tarabyte
  • 17,837
  • 15
  • 76
  • 117
  • possible duplicate of: http://stackoverflow.com/questions/6436039/how-to-reference-the-version-information-in-a-google-chrome-extension – yuvi Feb 05 '15 at 00:35

1 Answers1

4

It is available through: chrome.runtime.getManifest().version

Documented here.

tarabyte
  • 17,837
  • 15
  • 76
  • 117