fix for undefined?

This commit is contained in:
Sander Hautvast 2021-03-05 19:35:10 +01:00
parent 720d3a647f
commit 30a74579f9
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

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