Since chrome 22 you should use chrome.runtime.getManifest(). See docs here.
So now it is as simple as:
var manifest = chrome.runtime.getManifest();
console.log(manifest.name);
console.log(manifest.version);
Since chrome 22 you should use chrome.runtime.getManifest(). See docs here.
So now it is as simple as:
var manifest = chrome.runtime.getManifest();
console.log(manifest.name);
console.log(manifest.version);