Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 1 | // Returns whether the extension is a release version. |
2 | export function isReleaseVersion() { | ||||
3 | var manifest = chrome.runtime.getManifest(); | ||||
4 | return ('version' in manifest) && manifest.version != '0'; | ||||
5 | } | ||||
Adrià Vilanova Martínez | e32adc4 | 2021-08-30 17:16:49 +0200 | [diff] [blame] | 6 | |
7 | // Returns the extension version | ||||
8 | export function getExtVersion() { | ||||
9 | var manifest = chrome.runtime.getManifest(); | ||||
10 | return manifest?.version; | ||||
11 | } |