aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/profile-page.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/profile-page.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/profile-page.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/profile-page.js b/packages/meshbay-hub/src/meshbay_hub/static/profile-page.js
index a19b543..ed7a2fa 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/profile-page.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/profile-page.js
@@ -2,6 +2,7 @@ import {
html, useState, useEffect, useCallback,
} from './vendor/htm-preact.js';
import { t } from './i18n.js';
+import { ask } from './ask.js';
import { Icon } from './icon.js';
import {
hubFetch, HUB, session, setAuth,
@@ -48,7 +49,7 @@ export function ProfilePage({ user, onLogout }) {
// Every session of this account stops renewing, this one included — the
// case it exists for is a browser left signed in somewhere else.
const signOutEverywhere = useCallback(async () => {
- if (!confirm(t('settings.sign_out_everywhere_confirm'))) return;
+ if (!await ask(t('settings.sign_out_everywhere_confirm'))) return;
setRevoking(true);
setRevokeError('');
try {