19 lines
620 B
JavaScript
19 lines
620 B
JavaScript
// Metro module 4069 (f4070).
|
|
let c2339_0 = false;
|
|
let c2339_1 = Boolean(false);
|
|
const r12 = c2339_1 ? ({ component, method, params }) => {
|
|
if (c2339_0) {
|
|
const r13 = typeof params === "object" ? Object.keys(params).map((item) => `${item}:${params[item]}`).join(" ") : `${params == null ? "" : params}`;
|
|
console.log(`[Portal::${[component, method].filter(Boolean).join("::")}]`, r13);
|
|
}
|
|
} : () => {};
|
|
Object.freeze(r12);
|
|
export { r12 as print };
|
|
export const enableLogging = () => {
|
|
if (c2339_1) {
|
|
c2339_0 = true;
|
|
} else {
|
|
console.warn("[Portal] could not enable logging on production!");
|
|
}
|
|
};
|