cloud-to-butt
cloud-to-butt copied to clipboard
compilation doesn't work
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
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.