Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3334819
D13789.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
848 B
Referenced Files
None
Subscribers
None
D13789.diff
View Options
diff --git a/keyserver/src/responders/landing-handler.js b/keyserver/src/responders/landing-handler.js
--- a/keyserver/src/responders/landing-handler.js
+++ b/keyserver/src/responders/landing-handler.js
@@ -198,6 +198,14 @@
<base href="${basePath}" />
${fontsInclude}
${cssInclude}
+ <script>
+ localStorage.clear();
+ indexedDB.databases().then(databases => {
+ databases.forEach(db => {
+ indexedDB.deleteDatabase(db.name);
+ });
+ });
+ </script>
<link
rel="apple-touch-icon"
sizes="180x180"
diff --git a/landing/script.js b/landing/script.js
--- a/landing/script.js
+++ b/landing/script.js
@@ -1,7 +1,5 @@
// @flow
-localStorage.clear();
-
import 'isomorphic-fetch';
import invariant from 'invariant';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 8:10 AM (18 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2560684
Default Alt Text
D13789.diff (848 B)
Attached To
Mode
D13789: [keyserver][landing] Fix reset preamble for landing SIWE
Attached
Detach File
Event Timeline
Log In to Comment