Skip to content

Commit 23f2b02

Browse files
committed
secret from search param
1 parent 014bb92 commit 23f2b02

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@
5252
const errorDiv = document.getElementById('error');
5353
const worker = new Worker('./worker.js', { type: 'module' });
5454

55+
const urlParams = new URLSearchParams(window.location.search);
56+
const secretFromUrl = urlParams.get('secret') || urlParams.get('s');
57+
if (secretFromUrl) {
58+
secretInput.value = decodeURIComponent(secretFromUrl);
59+
}
60+
5561
async function getInputBlob() {
5662
const file = fileInput.files[0];
5763
const arrayBuffer = await file.arrayBuffer();

app/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ div#output-container {
3838
gap: 0.25rem;
3939
}
4040

41+
div#button-container {
42+
margin-top: 0.5rem;
43+
}
44+
4145
img {
4246
max-width: 100%;
4347
height: auto;

0 commit comments

Comments
 (0)