fix: remove double popup on key rotation
This commit is contained in:
@@ -157,7 +157,6 @@
|
|||||||
const data = await api('/account/reset-key', { method: 'POST', body: {} });
|
const data = await api('/account/reset-key', { method: 'POST', body: {} });
|
||||||
localStorage.setItem('pingql_key', data.key);
|
localStorage.setItem('pingql_key', data.key);
|
||||||
document.getElementById('primary-key').textContent = data.key;
|
document.getElementById('primary-key').textContent = data.key;
|
||||||
alert(`New key: ${data.key}\n\nYour old key is now invalid.`);
|
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user