%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/vendor/npm-asset/clipboard-polyfill/src/
Upload File :
Create Path :
Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/vendor/npm-asset/clipboard-polyfill/src/debug.ts

/******** Debug Logging ********/

// tslint:disable-next-line: no-empty
let debugLogImpl = (s: string) => {};

export function debugLog(s: string) {
  debugLogImpl(s);
}

export function setDebugLog(logFn: (s: string) => void) {
  debugLogImpl = logFn;
}

/******** Warnings ********/

let showWarnings = true;

export function suppressWarnings() {
  showWarnings = false;
}

export function shouldShowWarnings(): boolean {
  return showWarnings;
}

// Workaround for:
// - IE9 (can't bind console functions directly), and
// - Edge Issue #14495220 (referencing `console` without F12 Developer Tools can cause an exception)
function warnOrLog() {
  // tslint:disable-next-line: no-console
  (console.warn || console.log).apply(console, arguments);
}

export const warn = warnOrLog.bind("[clipboard-polyfill]");

Zerion Mini Shell 1.0