UNPKG

@triply/tus-js-client

Version:

A pure JavaScript client for the tus resumable upload protocol

19 lines (15 loc) 314 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.enableDebugLog = enableDebugLog; exports.log = log; /* eslint no-console: "off" */ var isEnabled = false; function enableDebugLog() { isEnabled = true; } function log(msg) { if (!isEnabled) return; console.log(msg); }