1
0
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:
Silvio Giebl 2019-08-10 23:36:14 +02:00
parent 6bd43a1332
commit a5842c0d7b

View File

@ -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) {