kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Only use colour output if we're on a terminal
And not if we’re running on AWS Lambda, for instanceprint-window-tiddler
rodzic
5a5d648127
commit
1b7d9d65f4
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue