feat(check-ip): update URL hash after successful check

This commit is contained in:
AJ ONeal 2026-05-28 15:15:14 -06:00
parent 2d7c3faa83
commit d1ddaafd39
No known key found for this signature in database

View File

@ -24,6 +24,7 @@ const App = {
document.querySelector('[data-state="loading"]').hidden = true;
document.querySelector('[data-state="result"]').hidden = false;
App.render(data);
window.history.replaceState(null, '', '#/?host=' + encodeURIComponent(data.ip));
})
.catch(function(err) {
document.querySelector('[data-state="loading"]').hidden = true;