diff --git a/index.html b/index.html index 2c8d6a3..b883426 100644 --- a/index.html +++ b/index.html @@ -3851,15 +3851,16 @@ case 'password': debugLog('PASSWORD REQUESTED', null, 2); - const passwordInput = prompt(`Enter password:`); - if (passwordInput === lockRequirements.requires) { - unlockTarget(lockable, type, lockable.layer); // Pass the layer here - debugLog('PASSWORD SUCCESS', null, 1); - gameAlert(`Correct password! The ${type} is now unlocked.`, 'success', 'Password Accepted', 4000); - } else if (passwordInput !== null) { - debugLog('PASSWORD FAIL', null, 2); - gameAlert("Incorrect password.", 'error', 'Password Rejected', 3000); - } + showPasswordModal(function(passwordInput) { + if (passwordInput === lockRequirements.requires) { + unlockTarget(lockable, type, lockable.layer); // Pass the layer here + debugLog('PASSWORD SUCCESS', null, 1); + gameAlert(`Correct password! The ${type} is now unlocked.`, 'success', 'Password Accepted', 4000); + } else if (passwordInput !== null) { + debugLog('PASSWORD FAIL', null, 2); + gameAlert("Incorrect password.", 'error', 'Password Rejected', 3000); + } + }); break; case 'biometric': @@ -7477,5 +7478,67 @@ }, { passive: false }); }); + + +
+