Merge pull request #24 from git710/master_fix
fix: report an error when 'side_tools' config is false
This commit is contained in:
commit
4ab5189cb2
|
@ -1,3 +1,4 @@
|
|||
@require 'common/variables.styl'
|
||||
@require "./common/magic-theme.styl";
|
||||
|
||||
.archive-container {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
@require 'common/variables.styl'
|
||||
@require "./common/magic-theme.styl";
|
||||
|
||||
.category-list-container {
|
||||
|
|
|
@ -56,7 +56,7 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||
},
|
||||
|
||||
initModeToggleButton() {
|
||||
this.modeToggleButton_dom.addEventListener('click', () => {
|
||||
this.modeToggleButton_dom && this.modeToggleButton_dom.addEventListener('click', () => {
|
||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
this.setItemUtil('light-mode', 'dark');
|
||||
} else {
|
||||
|
|
|
@ -72,7 +72,7 @@ ILS.utils = {
|
|||
this.toolsMenuButton_dom = document.querySelector('.tools-button');
|
||||
this.toolsWrapperList_dom = document.querySelectorAll('.tools-wrapper li');
|
||||
|
||||
this.toolsMenuButton_dom.addEventListener('click', e => {
|
||||
this.toolsMenuButton_dom && this.toolsMenuButton_dom.addEventListener('click', e => {
|
||||
isOpen = !isOpen;
|
||||
|
||||
const toolsMenuButtonIcon = this.toolsMenuButton_dom.querySelector('i');
|
||||
|
|
Loading…
Reference in New Issue