mirror of
https://github.com/thangisme/notes.git
synced 2025-01-03 06:26:37 -05:00
Fixed js browser incompatibility
(cherry picked from commit 86ff2dac05412a6ff994968c2be6122a7fcf85f9)
This commit is contained in:
parent
6bd43a1332
commit
a5842c0d7b
@ -26,7 +26,7 @@ jtd.onReady = function(ready) {
|
||||
function initNav() {
|
||||
jtd.addEvent(document, 'click', function(e){
|
||||
var target = e.target;
|
||||
while (target && target.classList && !target.classList.contains('nav-list-expander')) {
|
||||
while (target && !(target.classList && target.classList.contains('nav-list-expander'))) {
|
||||
target = target.parentElement;
|
||||
}
|
||||
if (target) {
|
||||
|
Loading…
Reference in New Issue
Block a user