From 1306dbd6fa73f992e44fa96db6f8fac465a48b49 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 26 Aug 2023 20:14:27 +0700 Subject: [PATCH] handle button error --- extension/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extension/script.js b/extension/script.js index 3331cc0..56f1364 100644 --- a/extension/script.js +++ b/extension/script.js @@ -250,6 +250,8 @@ function checkChannelSubscribed(channelSubButton) { } } function handleError() { + buttonError(channelSubButton); + channelSubButton.innerText = 'Error'; console.log('error'); } @@ -393,6 +395,7 @@ function checkVideoExists(taButton) { taButton.isChecked = true; } function handleError() { + buttonError(taButton); console.log('error'); }