mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-06 02:30:46 -08:00
Only use colour output if we're on a terminal
And not if we’re running on AWS Lambda, for instance
This commit is contained in:
parent
5a5d648127
commit
1b7d9d65f4
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ exports.log = function(text,colour) {
|
|||
};
|
||||
|
||||
exports.terminalColour = function(colour) {
|
||||
if($tw.node) {
|
||||
if($tw.node && process.stdout.isTTY) {
|
||||
if(colour) {
|
||||
var code = exports.terminalColourLookup[colour];
|
||||
if(code) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue