diff --git a/example.html b/example.html index 0d20b7b..d69c35f 100644 --- a/example.html +++ b/example.html @@ -27,10 +27,9 @@ document.getElementById('getSecretValue').addEventListener('click', async () => { const userAgent = document.getElementById('userAgent').value || navigator.userAgent; - const url = document.getElementById('url').value || window.location.href; const serverTs = await fetchServerTimestamp() - const secretValue = await get_secret_value(BigInt(serverTs.timestamp), userAgent, url); + const secretValue = await get_secret_value(BigInt(serverTs.timestamp), userAgent, '/api/v1/guestlogin'); console.log(secretValue) document.getElementById('result').innerText = secretValue;