mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-13 06:13:19 +00:00
Ensure we don't colour browser logs under nw.js
Under nw.js $tw.browser and $tw.node are both true...
This commit is contained in:
parent
e5f96d6415
commit
1dcc8c99e5
@ -20,7 +20,7 @@ exports.log = function(text,colour) {
|
||||
};
|
||||
|
||||
exports.terminalColour = function(colour) {
|
||||
if($tw.node && process.stdout.isTTY) {
|
||||
if(!$tw.browser && $tw.node && process.stdout.isTTY) {
|
||||
if(colour) {
|
||||
var code = exports.terminalColourLookup[colour];
|
||||
if(code) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user