From 21a4158403dda587cbead3d65c96481499fcc71d Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 14 Jul 2025 23:17:53 -0400 Subject: [PATCH] try the button --- who-am-i/templates/prompt.hbs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/who-am-i/templates/prompt.hbs b/who-am-i/templates/prompt.hbs index e61bc33..14b97bf 100644 --- a/who-am-i/templates/prompt.hbs +++ b/who-am-i/templates/prompt.hbs @@ -29,7 +29,10 @@ @@ -45,6 +48,7 @@ const formEl = document.getElementById('form-action'); // for anon const allowEl = document.getElementById('handle-action'); // for known-did const connectEl = document.getElementById('connect'); // for anon const needStorageEl = document.getElementById('need-storage'); // for safari/frame isolation +const desperationEl = document.getElementById('desperation'); function err(e, msg) { loaderEl.classList.add('hidden'); @@ -80,6 +84,15 @@ if ('hasStorageAccess' in document) { promptEl.classList.add('hidden'); infoEl.classList.add('hidden'); needStorageEl.classList.remove('hidden'); + desperation.addEventListener('click', () => { + document.requestStorageAccess({ + cookies: true, + localStorage: true, + }).then( + () => desperation.textContent = "(maybe helped?)", + () => desperation.textContent = "(doubtful)", + ); + }) } }); } -- 2.51.2