Adrià Vilanova Martínez | 0335b51 | 2022-01-21 13:34:59 +0100 | [diff] [blame] | 1 | // Returns whether the extension is a production version (released stable or |
| 2 | // beta version). |
| 3 | export function isProdVersion() { |
| 4 | // #!if production && !canary |
| 5 | return true; |
| 6 | // #!else |
| 7 | return false; |
| 8 | // #!endif |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 9 | } |
Adrià Vilanova Martínez | e32adc4 | 2021-08-30 17:16:49 +0200 | [diff] [blame] | 10 | |
| 11 | // Returns the extension version |
| 12 | export function getExtVersion() { |
| 13 | var manifest = chrome.runtime.getManifest(); |
| 14 | return manifest?.version; |
| 15 | } |