VulpesOS/gaia/apps/costcontrol/test/unit/mock_debug.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

18 lines
433 B
JavaScript
Executable file

/* exported DEBUGGING, debug */
'use strict';
var DEBUGGING = true;
function debug() {
var message = [];
for (var i = 0, len = arguments.length, obj; i < len; i++) {
obj = arguments[i];
message.push(typeof obj === 'object' ? JSON.stringify(obj) : obj);
}
if (window.dump) {
message.push('\n');
window.dump(message.join(' '));
} else if (console && console.log) {
console.log(message.join(' '));
}
}