Extension: Store build type in metadata

This commit is contained in:
Romain Vigier
2022-09-08 09:51:33 +02:00
parent 4f24db17cf
commit eee013b87d
3 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -11,6 +11,6 @@ const Me = extensionUtils.getCurrentExtension();
* @param {string} msg Message to print.
*/
function message(msg) {
if ('@BUILD_TYPE@' === 'debug') // eslint-disable-line no-constant-condition
if (Me.metadata['build-type'] === 'debug')
console.log(`[${Me.metadata.name}] ${msg}`);
}