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.
2 parents 0d2af8f + f19b447 commit 56ea7e2Copy full SHA for 56ea7e2
example/index.html
@@ -179,12 +179,11 @@
179
let expiry = window[namespace].wasmClientGetExpiry();
180
if (!expiry) {
181
document.getElementById('expiry').innerHTML = "No expiry found in macaroon";
182
- return {}
+ } else {
183
+ localStorage.setItem(namespace+":expiry", expiry)
184
+ document.getElementById('expiry').innerHTML = "Session Expiry: "+new Date(expiry*1000).toLocaleString();
185
}
186
- localStorage.setItem(namespace+":expiry", expiry)
- document.getElementById('expiry').innerHTML = "Session Expiry: "+new Date(expiry*1000).toLocaleString();
187
-
188
// Determine if the session is a read only session.
189
let readOnly = window[namespace].wasmClientIsReadOnly();
190
if (readOnly) {
0 commit comments