fix: красная книга не скрывалась в сайдбаре при отключении (href без .html)

This commit is contained in:
Maxim Dolgolyov
2026-05-07 13:46:15 +03:00
parent 2fd7f6a463
commit 90f6a1d91e
+2 -2
View File
@@ -589,7 +589,7 @@ async function hideDisabledFeatures() {
hangman: ['/hangman'],
crossword: ['/crossword'],
pet: ['/pet'],
red_book: ['/red-book.html', '/red-book-ecosystem.html', '/red-book-biomes.html'],
red_book: ['/red-book', '/red-book.html', '/red-book-ecosystem.html', '/red-book-biomes.html'],
collection: ['/collection.html', '/collection'],
lab: ['/lab'],
knowledge_map: ['/knowledge-map'],
@@ -624,7 +624,7 @@ async function hideDisabledFeatures() {
const classOnlyHrefs = [
'/board', '/lab', '/hangman', '/crossword', '/pet',
'/collection', '/collection.html', '/knowledge-map',
'/red-book.html', '/red-book-ecosystem.html', '/red-book-biomes.html',
'/red-book', '/red-book.html', '/red-book-ecosystem.html', '/red-book-biomes.html',
'/flashcards', '/live-quiz',
];
classOnlyHrefs.forEach(href => {