mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
- fix: new tasks counter was not working in old browsers (like chrome 49) due to the absent cookies in fetch
This commit is contained in:
parent
9a1970d3b1
commit
ae6a4ef2a4
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue