CoreFiles by mySites.guru
setup-es5.js27 lines, 801 bytes, from Joomla_4.3.2-Stable-Full_Package.zip
Raw History Compare with 4.3.1
md5
9973e879b29e097ea38f3c040f80c9cf
sha1
f6cb1581da7945883ba2ec4d9bd5a2d242842caf
sha256
0dec465faa9df53b2ac514c5ab6ae842e5f60f19cdc014e6d05eb8b52e83740a
(function () {
  'use strict';

  /**
   * @package     Joomla.Plugin
   * @subpackage  Multifactorauth.webauthn
   *
   * @copyright   (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   */

  (function (Joomla, document, qrcode) {
    document.addEventListener('DOMContentLoaded', function () {
      var elTarget = document.getElementById('users-mfa-totp-qrcode');
      var qrData = Joomla.getOptions('plg_multifactorauth_totp.totp.qr');
      if (!elTarget || !qrData) {
        return;
      }
      var qr = qrcode(0, 'H');
      qr.addData(qrData);
      qr.make();
      elTarget.innerHTML = qr.createImgTag(4);
    });
    // eslint-disable-next-line no-undef
  })(Joomla, document, qrcode);

})();

The same content is in 57 releases, Joomla 4.3.0-alpha1 to 5.0.0-alpha1. See them all, or every version of this file.