mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 06:55:00 +00:00
feat(check-ip): update URL hash after successful check
This commit is contained in:
parent
2d7c3faa83
commit
d1ddaafd39
@ -24,6 +24,7 @@ const App = {
|
|||||||
document.querySelector('[data-state="loading"]').hidden = true;
|
document.querySelector('[data-state="loading"]').hidden = true;
|
||||||
document.querySelector('[data-state="result"]').hidden = false;
|
document.querySelector('[data-state="result"]').hidden = false;
|
||||||
App.render(data);
|
App.render(data);
|
||||||
|
window.history.replaceState(null, '', '#/?host=' + encodeURIComponent(data.ip));
|
||||||
})
|
})
|
||||||
.catch(function(err) {
|
.catch(function(err) {
|
||||||
document.querySelector('[data-state="loading"]').hidden = true;
|
document.querySelector('[data-state="loading"]').hidden = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user