blob: cabf8cb7f81393c3ae2a806a5e7c5ddcf4461cfc [file] [log] [blame]
Adrià Vilanova Martínez0335b512022-01-21 13:34:59 +01001// Returns whether the extension is a production version (released stable or
2// beta version).
3export function isProdVersion() {
4 // #!if production && !canary
5 return true;
6 // #!else
7 return false;
8 // #!endif
Adrià Vilanova Martínez3465e772021-07-11 19:18:41 +02009}
Adrià Vilanova Martíneze32adc42021-08-30 17:16:49 +020010
11// Returns the extension version
12export function getExtVersion() {
13 var manifest = chrome.runtime.getManifest();
14 return manifest?.version;
15}