alpha
Login
or
Join now
microcosm.blue
/
microcosm-rs
Star
0
Fork
3
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
Star
0
Fork
3
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
try the button
author
phil
date
11 months ago
(Jul 14, 2025, 11:17 PM -0400)
commit
21a41584
21a4158403dda587cbead3d65c96481499fcc71d
parent
b4bc0957
b4bc095762cd01696cf820f1c584bec80bd3faf2
+14
-1
1 changed file
Expand all
Collapse all
Unified
Split
who-am-i
templates
prompt.hbs
+14
-1
who-am-i/templates/prompt.hbs
Reviewed
···
29
29
30
30
<div id="need-storage" class="hidden">
31
31
<p class="problem">Sorry, your browser is blocking access.</p>
32
32
-
<p>Try <a href="/" target="_blank">connecting directly</a> first (but no promises).</p>
32
32
+
<p>
33
33
+
Try <a href="/" target="_blank">connecting directly</a> first (but no promises).
34
34
+
Clicking <button id="desperation">this button</button> might also help.
35
35
+
</p>
33
36
</div>
34
37
35
38
···
45
48
const allowEl = document.getElementById('handle-action'); // for known-did
46
49
const connectEl = document.getElementById('connect'); // for anon
47
50
const needStorageEl = document.getElementById('need-storage'); // for safari/frame isolation
51
51
+
const desperationEl = document.getElementById('desperation');
48
52
49
53
function err(e, msg) {
50
54
loaderEl.classList.add('hidden');
···
80
84
promptEl.classList.add('hidden');
81
85
infoEl.classList.add('hidden');
82
86
needStorageEl.classList.remove('hidden');
87
87
+
desperation.addEventListener('click', () => {
88
88
+
document.requestStorageAccess({
89
89
+
cookies: true,
90
90
+
localStorage: true,
91
91
+
}).then(
92
92
+
() => desperation.textContent = "(maybe helped?)",
93
93
+
() => desperation.textContent = "(doubtful)",
94
94
+
);
95
95
+
})
83
96
}
84
97
});
85
98
}