From 99e8feff72cd7852bf391270a6b50add7b1796a5 Mon Sep 17 00:00:00 2001 From: teenager-ETH Date: Sun, 22 Dec 2024 22:08:43 +0100 Subject: [PATCH] fix code build.js --- client/scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/build.js b/client/scripts/build.js index ade05cc51..5127d6b98 100644 --- a/client/scripts/build.js +++ b/client/scripts/build.js @@ -153,7 +153,7 @@ function build(previousFileSizes) { let errMessage = err.message; // Add additional information for postcss errors - if (Object.prototype.hasOwnProperty.call(err, 'postcssNode')) { + if Object.hasOwn(err, 'postcssNode') { errMessage += '\nCompileError: Begins at CSS selector ' + err['postcssNode'].selector;