affiliate
Version:
A platform agnostic tool to quickly add affiliate links onto your website
18 lines • 490 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* log handles formatting and doesn't throw errors is console is undefined
*/
function log(isError, ...args) {
const textId = '[Affiliate] ';
if (typeof console === 'object') {
if (isError) {
console.error(textId, ...args);
}
else {
console.log(textId, ...args);
}
}
}
exports.default = log;
//# sourceMappingURL=log.js.map