lib/QRCodeGenerator.js
function _getErrorCorrectLevel(ecl) {
    switch (ecl) {
        case "L":
          return QRErrorCorrectLevel.L;

        case "M":
          return QRErrorCorrectLevel.M;

        case "Q":
          return QRErrorCorrectLevel.Q;

        case "H":
          return QRErrorCorrectLevel.H;

        default:
          throw new Error("Unknown error correction level: " + ecl);
      }
  }
function _getErrorCorrectLevel(ecl) {
    switch (ecl) {
        case "L":
          return QRErrorCorrectLevel.L;

        case "M":
          return QRErrorCorrectLevel.M;

        case "Q":
          return QRErrorCorrectLevel.Q;

        case "H":
          return QRErrorCorrectLevel.H;

        default:
          throw new Error("Unknown error correction level: " + ecl);
      }
  }
function _getErrorCorrectLevel ( ecl ) { switch ( ecl ) { case "L" : return QRErrorCorrectLevel . L ; case "M" : return QRErrorCorrectLevel . M ; case "Q" : return QRErrorCorrectLevel . Q ; case "H" : return QRErrorCorrectLevel . H ; default : throw new Error ( "Unknown error correction level: " + ecl ) ; } }
Gets the error correction level
Gets the error correction level