mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-17 11:30:02 +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 */) {
|
$tw.utils.log = function(/* args */) {
|
||||||
if(console !== undefined && console.log !== undefined) {
|
if(console !== undefined && console.log !== undefined) {
|
||||||
return window.console && console.log
|
return Function.apply.call(console.log, console, arguments);
|
||||||
&& Function.apply.call(console.log, console, arguments);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user