From dfe26a47719666ac441be9a4834638e812d520ba Mon Sep 17 00:00:00 2001 From: Maxim Dolgolyov Date: Wed, 27 May 2026 17:21:06 +0300 Subject: [PATCH] =?UTF-8?q?fix(physics8):=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20/js/api.js=20=D0=B2=20head=20=E2=80=94=20?= =?UTF-8?q?=D0=B1=D0=B5=D0=B7=20=D0=BD=D0=B5=D0=B3=D0=BE=20tracker=20?= =?UTF-8?q?=D0=BC=D0=BE=D0=BB=D1=87=D0=B0=20=D0=BE=D1=82=D0=BA=D0=BB=D1=8E?= =?UTF-8?q?=D1=87=D0=B0=D0=B5=D1=82=D1=81=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tracker проверяет 'LS.getToken()' перед каждым POST'ом. Без api.js объект LS undefined, и tracker возвращает из syncToServer ничего не делая. Поэтому в physics8_thermal/electro/optics прогресс не писался вообще (ни last_para, ни mark_read). Добавил + diff --git a/frontend/textbooks/physics8_optics.html b/frontend/textbooks/physics8_optics.html index e4a9819..48dadb6 100644 --- a/frontend/textbooks/physics8_optics.html +++ b/frontend/textbooks/physics8_optics.html @@ -9,6 +9,7 @@ + diff --git a/frontend/textbooks/physics8_thermal.html b/frontend/textbooks/physics8_thermal.html index 5b5c7cf..a7b7442 100644 --- a/frontend/textbooks/physics8_thermal.html +++ b/frontend/textbooks/physics8_thermal.html @@ -9,6 +9,7 @@ +