mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-15 13:45:01 -05:00
17 lines
284 B
JavaScript
17 lines
284 B
JavaScript
|
|
function log()
|
|
{
|
|
var out = [ logFormatDate() + ":" ];
|
|
for (var i=0; i<arguments.length; ++i)
|
|
out.push("" + arguments[i]);
|
|
|
|
if (mDispatch.mode == 'native')
|
|
{
|
|
mNative.sendRequest({cmd:'cout',args:[out.join(" ")], callback:-1});
|
|
}
|
|
else
|
|
{
|
|
console.log(out.join(" "));
|
|
}
|
|
}
|