Skip to content

Commit b91e3d9

Browse files
committed
fix revealing module and jquery3 of 2fa-modal
1 parent 2efd686 commit b91e3d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

public/themes/pterodactyl/js/frontend/2fa-modal.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var TwoFactorModal = (function () {
3737
}).done(function (data) {
3838
var image = new Image();
3939
image.src = data.qrImage;
40-
$(image).load(function () {
40+
$(image).on('load', function () {
4141
$('#hide_img_load').slideUp(function () {
4242
$('#qr_image_insert').attr('src', image.src).slideDown();
4343
});
@@ -85,7 +85,6 @@ var TwoFactorModal = (function () {
8585
bindListeners();
8686
}
8787
}
88-
89-
});
88+
})();
9089

9190
TwoFactorModal.init();

0 commit comments

Comments
 (0)