We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6504dce commit f19b447Copy full SHA for f19b447
example/index.html
@@ -168,12 +168,11 @@
168
let expiry = window[namespace].wasmClientGetExpiry();
169
if (!expiry) {
170
document.getElementById('expiry').innerHTML = "No expiry found in macaroon";
171
- return {}
+ } else {
172
+ localStorage.setItem(namespace+":expiry", expiry)
173
+ document.getElementById('expiry').innerHTML = "Session Expiry: "+new Date(expiry*1000).toLocaleString();
174
}
175
- localStorage.setItem(namespace+":expiry", expiry)
- document.getElementById('expiry').innerHTML = "Session Expiry: "+new Date(expiry*1000).toLocaleString();
176
-
177
// Determine if the session is a read only session.
178
let readOnly = window[namespace].wasmClientIsReadOnly();
179
if (readOnly) {
0 commit comments