workspace: upgrade to cordis@4.0.0-beta.1, fix #975

This commit is contained in:
undefined committed 2025-04-11 21:21:47 +08:00
1 parent 5d5f6c69d7
commit bf51bd30c7
34 files changed
+87 -88

No files matched your search

@@ -1,6 +1,5 @@
import { browserSupportsWebAuthn, platformAuthenticatorIsAvailable, startRegistration } from '@simplewebauthn/browser';
import $ from 'jquery';
import { escape } from 'lodash';
import QRCode from 'qrcode';
import { ActionDialog } from 'vj/components/dialog';
import Notification from 'vj/components/notification';
@@ -28,7 +27,7 @@ async function changeMail() {
<input className="textbox" type="text" name="mail" required></input>
</div>
</label>
</div>
</div>,
),
onDispatch(action) {
if (action === 'ok') {
@@ -199,7 +198,7 @@ export default new NamedPage('home_security', () => {
</MenuLink>
</>)}
</ol>
</div>
</div>,
);
const action = await new ActionDialog({ $body, $action: [] }).open();
if (!action || action === 'cancel') return;