Skip to content

Commit

Permalink
Agent prompt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Jul 4, 2024
1 parent 3e4f527 commit e49a715
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Protest/Front/personalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,14 @@ class Personalize extends Tabs {
if (event.key === "Enter") Apply();
};

settingsButton.onclick = ()=> UI.PromptAgent(this, "settings", "--");
settingsButton.onclick = ()=> {
if (this.presharedKeyInput.value === "") {
this.ConfirmBox("Agent is not configured. Please set a preshared key.", true, "mono/agent.svg");
}
else {
UI.PromptAgent(this, "settings", "--");
}
};
}

ClearCache() {
Expand Down

0 comments on commit e49a715

Please sign in to comment.