tarabyte
tarabyte

Reputation: 19172

How to read version of app in app?

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?

Upvotes: 2

Views: 77

Answers (1)

tarabyte
tarabyte

Reputation: 19172

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

Documented here.

Upvotes: 4

Related Questions