fix: красная книга не скрывалась в сайдбаре при отключении (href без .html)
This commit is contained in:
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user