From 114f85b44555ba5f6b07c3de5d88c76beb8fdbf3 Mon Sep 17 00:00:00 2001 From: hanyd Date: Thu, 17 Oct 2024 11:44:11 +0800 Subject: [PATCH] Add rate control message --- src/render/DesciptionPortPill.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/render/DesciptionPortPill.tsx b/src/render/DesciptionPortPill.tsx index 6c585d2e..347722c3 100644 --- a/src/render/DesciptionPortPill.tsx +++ b/src/render/DesciptionPortPill.tsx @@ -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;