Skip to content

Commit

Permalink
fix error when options are not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 2, 2024
1 parent 4b7fe96 commit 6fad1cc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -11964,7 +11964,7 @@
var prev_exec_cmd;
var tab_count = 0; // for tab completion
var output; // .terminal-output jquery object
var have_custom_id = typeof options.id === 'number';
var have_custom_id = !!(options && typeof options.id === 'number');
var terminal_id = have_custom_id ? options.id : terminals.length();
var force_awake = false; // flag used to don't pause when user return read() call
var num_chars; // numer of chars in line
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sat, 02 Nov 2024 21:30:07 +0000
* Date: Sat, 02 Nov 2024 21:32:11 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5350,7 +5350,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sat, 02 Nov 2024 21:30:07 +0000',
date: 'Sat, 02 Nov 2024 21:32:11 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -11964,7 +11964,7 @@
var prev_exec_cmd;
var tab_count = 0; // for tab completion
var output; // .terminal-output jquery object
var have_custom_id = typeof options.id === 'number';
var have_custom_id = !!(options && typeof options.id === 'number');
var terminal_id = have_custom_id ? options.id : terminals.length();
var force_awake = false; // flag used to don't pause when user return read() call
var num_chars; // numer of chars in line
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit 6fad1cc

Please sign in to comment.