mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-22 22:10:03 +00:00
Add a simple log wrapper
We'll make it more sophisticated at some point
This commit is contained in:
parent
e2d6c16f50
commit
17e67a5bf9
10
core/boot.js
10
core/boot.js
@ -102,6 +102,16 @@ $tw.config.contentTypeInfo = {
|
||||
|
||||
$tw.utils = $tw.utils || {};
|
||||
|
||||
/*
|
||||
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);
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
Check if an object has a property
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user