[fix] simple theme: disable hotkeys when they are not enabled in the preferences

This commit is contained in:
Alexandre Flament 2021-11-05 10:26:01 +01:00
parent ba342db55e
commit d1c09c84e2
3 changed files with 17 additions and 14 deletions

View file

@ -21,6 +21,7 @@
autocompleter: script.getAttribute('data-autocompleter') === 'true',
search_on_category_select: script.getAttribute('data-search-on-category-select') === 'true',
infinite_scroll: script.getAttribute('data-infinite-scroll') === 'true',
hotkeys: script.getAttribute('data-hotkeys') === 'true',
static_path: script.getAttribute('data-static-path'),
translations: JSON.parse(script.getAttribute('data-translations')),
};