mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Simplify $tw.utils.log
And in the process make it run on node.js
This commit is contained in:
parent
43c9ca1fe8
commit
3eeac8efca
@ -107,8 +107,7 @@ Log a message
|
||||
*/
|
||||
$tw.utils.log = function(/* args */) {
|
||||
if(console !== undefined && console.log !== undefined) {
|
||||
return window.console && console.log
|
||||
&& Function.apply.call(console.log, console, arguments);
|
||||
return Function.apply.call(console.log, console, arguments);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user