clean up doco

This commit is contained in:
Chris Bisset 2025-03-23 00:12:13 +00:00
parent ac15a15caf
commit 856e5cb053
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@
appSettings.apiKeyList = (await response.json()).apiKeys;
appSettings.apiTested = true;
// determine the remaining time for the key we are currently using
// determine the remaining time for the key we are currently using. Note: Nested Async
appSettings.apiKeyList.forEach((key) => {
if (persistentAppSettings.headscaleAPIKey.startsWith(key.prefix)) {
getKeyRemainingTime(new Date(key.expiration));
@ -49,7 +49,7 @@
export async function rotateAPIKey() {
for (const key of appSettings.apiKeyList) {
// select the current key being used in the app settings
if (persistentAppSettings.headscaleAPIKey.startsWith(key.prefix)) {
let currentKey = key;

View file

@ -11,7 +11,7 @@
rotateButtonDisabled = true;
rotateAPIKey().then(() => {
rotateButtonDisabled = false;
console.log(appSettings.apiKeyList);
// console.log(appSettings.apiKeyList);
});
}
</script>