mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-29 19:52:15 -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(" "));
|
|
}
|
|
}
|