mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-03 07:48:46 +08:00
Update UIWindow2FASetup.js
This commit is contained in:
parent
12c883b6fd
commit
75bd1bc4c8
@ -176,9 +176,12 @@ const UIWindow2FASetup = async function UIWindow2FASetup () {
|
||||
|
||||
win = await UIComponentWindow({
|
||||
component,
|
||||
// on_before_exit: async () => {
|
||||
// return true;
|
||||
// },
|
||||
on_before_exit: async () => {
|
||||
if ( ! stepper.get('done') ) {
|
||||
promise.resolve(false);
|
||||
}
|
||||
return true
|
||||
},
|
||||
|
||||
title: '2FA Setup',
|
||||
app: 'instant-login',
|
||||
|
Loading…
Reference in New Issue
Block a user