cloud-to-butt icon indicating copy to clipboard operation
cloud-to-butt copied to clipboard

compilation doesn't work

Open zohaad opened this issue 9 years ago • 1 comments

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

zohaad avatar Dec 07 '16 20:12 zohaad

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.

kmatt avatar Feb 17 '17 00:02 kmatt