From bc5d5046df8664411f70c2433989517c8210cbbf Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sat, 30 Jan 2021 12:21:04 +0100 Subject: [PATCH] Webpack fix --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 447d6d9..c521abf 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -121,7 +121,7 @@ const config = { .substr(2) // YYYY -> YY .replace('-', '') // YY-MM-DD -> YYMM-DD .replace('-', '.') // YYMM-DD -> YYMM.DD - }.${process.env.BUILD_NUMBER ?? 0}`; + }.${process.env.BUILD_NUMBER === undefined ? 0 : process.env.BUILD_NUMBER}`; jsonContent.browser_action.default_title = "Ultrawidify Nightly"; // because we don't want web-ext to submit this as proper release @@ -137,7 +137,7 @@ const config = { .substr(2) // YYYY -> YY .replace('-', '') // YY-MM-DD -> YYMM-DD .replace('-', '.') // YYMM-DD -> YYMM.DD - }.${process.env.BUILD_NUMBER ?? 0}`; + }.${process.env.BUILD_NUMBER === undefined ? 0 : process.env.BUILD_NUMBER}`; jsonContent.browser_action.default_title = "Ultrawidify Testing"; // because we don't want web-ext to submit this as proper release