compilation doesn't work
zohaad opened this issue · 1 comments
zohaad commented
it gives errors while running after I compile it with chrome
Uncaught TypeError: node.classList.indexOf is not a function
I changed node.classList.indexOf > -1 to node.classList.contains('ace_editor') (this fixed the error)
Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
I don't know how to fix the last error
kmatt commented
I fixed by replacing lines 10-13 with:
if (node.nodeName.toLowerCase() == 'input' || node.nodeName.toLowerCase() == 'textarea' || (node.classList && node.classList.contains('ace_editor'))) { return; }
Added an undefined check to the classList for some cases.