From 30a74579f92baa8421e78d950b7fb84790bf2237 Mon Sep 17 00:00:00 2001 From: Sander Hautvast Date: Fri, 5 Mar 2021 19:35:10 +0100 Subject: [PATCH] fix for undefined? --- src/js/index.js | 2 +- webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/index.js b/src/js/index.js index b99dca9..593255e 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -168,7 +168,7 @@ const handle_enter = function () { value = value.description; } } catch (exception) { - value = exception ? exception.message : undefined; + value = exception.message; } command_history_element.innerText += value.toString() + "\n"; command_history.push(command); diff --git a/webpack.config.js b/webpack.config.js index 0ba298c..738094f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,7 +2,7 @@ const path = require('path'); const HtmlWebpackPlugin = require("html-webpack-plugin"); module.exports = { - mode: 'production', + mode: 'development', entry: './src/js/index.js', output: {