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'], hangman: ['/hangman'],
crossword: ['/crossword'], crossword: ['/crossword'],
pet: ['/pet'], 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'], collection: ['/collection.html', '/collection'],
lab: ['/lab'], lab: ['/lab'],
knowledge_map: ['/knowledge-map'], knowledge_map: ['/knowledge-map'],
@@ -624,7 +624,7 @@ async function hideDisabledFeatures() {
const classOnlyHrefs = [ const classOnlyHrefs = [
'/board', '/lab', '/hangman', '/crossword', '/pet', '/board', '/lab', '/hangman', '/crossword', '/pet',
'/collection', '/collection.html', '/knowledge-map', '/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', '/flashcards', '/live-quiz',
]; ];
classOnlyHrefs.forEach(href => { classOnlyHrefs.forEach(href => {