Skip to content

Commit

Permalink
fix String instance in greetings #936
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Apr 29, 2024
1 parent d2573ae commit 2017b30
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions js/jquery.terminal-2.40.6.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Mon, 29 Apr 2024 15:00:50 +0000
* Date: Mon, 29 Apr 2024 15:05:54 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5312,7 +5312,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Mon, 29 Apr 2024 15:00:50 +0000',
date: 'Mon, 29 Apr 2024 15:05:54 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -8498,7 +8498,7 @@
self.echo(self.signature, {finalize: a11y_hide, formatters: false});
} else if (settings.greetings) {
var type = typeof settings.greetings;
if (type === 'string' || type instanceof String) {
if (type === 'string' || settings.greetings instanceof String) {
self.echo(settings.greetings);
} else if (type === 'function') {
self.echo(function() {
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.40.6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal-src.js
Expand Up @@ -8498,7 +8498,7 @@
self.echo(self.signature, {finalize: a11y_hide, formatters: false});
} else if (settings.greetings) {
var type = typeof settings.greetings;
if (type === 'string' || type instanceof String) {
if (type === 'string' || settings.greetings instanceof String) {
self.echo(settings.greetings);
} else if (type === 'function') {
self.echo(function() {
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Mon, 29 Apr 2024 15:00:50 +0000
* Date: Mon, 29 Apr 2024 15:05:54 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5312,7 +5312,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Mon, 29 Apr 2024 15:00:50 +0000',
date: 'Mon, 29 Apr 2024 15:05:54 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -8498,7 +8498,7 @@
self.echo(self.signature, {finalize: a11y_hide, formatters: false});
} else if (settings.greetings) {
var type = typeof settings.greetings;
if (type === 'string' || type instanceof String) {
if (type === 'string' || settings.greetings instanceof String) {
self.echo(settings.greetings);
} else if (type === 'function') {
self.echo(function() {
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 2017b30

Please sign in to comment.