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: {