From ae6a4ef2a47006e074adbe9f1759b25649993fba Mon Sep 17 00:00:00 2001 From: maxpozdeev Date: Mon, 9 Oct 2023 11:09:17 +0300 Subject: [PATCH] - fix: new tasks counter was not working in old browsers (like chrome 49) due to the absent cookies in fetch --- src/content/mytinytodo.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/mytinytodo.js b/src/content/mytinytodo.js index 7b7952a..d26a985 100644 --- a/src/content/mytinytodo.js +++ b/src/content/mytinytodo.js @@ -2722,6 +2722,7 @@ function newTaskCounter() fetch(_mtt.apiUrl + 'tasks/newCounter', { method: 'POST', + credentials: 'same-origin', // old browsers headers: { 'Content-Type': 'application/json', 'MTT-Token': _mtt.options.token,