We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2efd686 commit b91e3d9Copy full SHA for b91e3d9
public/themes/pterodactyl/js/frontend/2fa-modal.js
@@ -37,7 +37,7 @@ var TwoFactorModal = (function () {
37
}).done(function (data) {
38
var image = new Image();
39
image.src = data.qrImage;
40
- $(image).load(function () {
+ $(image).on('load', function () {
41
$('#hide_img_load').slideUp(function () {
42
$('#qr_image_insert').attr('src', image.src).slideDown();
43
});
@@ -85,7 +85,6 @@ var TwoFactorModal = (function () {
85
bindListeners();
86
}
87
88
-
89
-});
+})();
90
91
TwoFactorModal.init();
0 commit comments