Skip to content

Commit dd97356

Browse files
groovecoderjrconlin
authored andcommitted
bug: default vapid expiry to now + 86400 seconds
1 parent 6ca131b commit dd97356

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ <h2>Claims</h2>
4444
</div>
4545
<div class="row">
4646
<label for="exp"><b>Exp</b>iration:</label>
47-
<p>Time in seconds for this claim to live. (Max: 24 hours from now)</p>
48-
<input name="exp" placeholder="Time in seconds">
47+
<p>Time in seconds for this claim to live. (Default/Max: 24 hours from now)</p>
48+
<input name="exp" id="vapid_exp" placeholder="Time in seconds">
4949
</div>
5050
<div class="control">
5151
<button id="gen">Generate VAPID</button>
@@ -267,6 +267,7 @@ <h2>Exported Keys</h2>
267267

268268
document.getElementById("check").addEventListener("click", check);
269269
document.getElementById("gen").addEventListener("click", gen);
270+
document.getElementById('vapid_exp').value = parseInt(Date.now()*.001) + 86400;
270271

271272

272273
</script>

0 commit comments

Comments
 (0)