mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-01 14:52:08 -08:00
Simplify $tw.utils.log
And in the process make it run on node.js
This commit is contained in:
parent
43c9ca1fe8
commit
3eeac8efca
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue