Refine vault defaults and account settings
This commit is contained in:
@@ -72,6 +72,11 @@ export async function bootstrap() {
|
||||
device.value = s.device;
|
||||
csrfToken.value = s.csrfToken;
|
||||
sessionExpiresAt.value = s.expiresAt;
|
||||
// An open site participates in discovery, including sessions that opted out in older UI.
|
||||
if (!s.device.discoverable) {
|
||||
await api('/device/me', 'PATCH', { discoverable: true });
|
||||
device.value = { ...s.device, discoverable: true };
|
||||
}
|
||||
};
|
||||
if (navigator.locks) await navigator.locks.request('hop-session-bootstrap', init);
|
||||
else await init();
|
||||
|
||||
Reference in New Issue
Block a user