diff --git a/src/App.tsx b/src/App.tsx index abc7499..bbd1253 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -81,6 +81,9 @@ const App = () => { const deleteCookie = async () => { const currentCookie = await getCookie(); + if (currentCookie.length === 0) { + return; + } return new Promise((resolve, reject) => { currentCookie.forEach((cookieRecord) => { GM_cookie('delete', { name: cookieRecord.name }, (cookie, error) => {