blob: e47a74cc3e68833780968016d242ff47146c7ff1 [file] [log] [blame]
Adrià Vilanova Martínez3465e772021-07-11 19:18:41 +02001// Returns whether the extension is a release version.
2export function isReleaseVersion() {
3 var manifest = chrome.runtime.getManifest();
4 return ('version' in manifest) && manifest.version != '0';
5}
Adrià Vilanova Martíneze32adc42021-08-30 17:16:49 +02006
7// Returns the extension version
8export function getExtVersion() {
9 var manifest = chrome.runtime.getManifest();
10 return manifest?.version;
11}