Skip to content

Commit

Permalink
Add rate control message
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Oct 17, 2024
1 parent dbe6f02 commit 114f85b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/render/DesciptionPortPill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ export class DescriptionPortPill {
private async updateSegments() {
const response = await updatePortedSegments(this.bvID);
if (!response?.ok) {
if (response.status === 429) {
showMessage(response.responseText, "info");
}
console.error(response.responseText);
showMessage(chrome.i18n.getMessage("refreshFailed") + response.responseText, "error");
return;
Expand Down

0 comments on commit 114f85b

Please sign in to comment.