layerssss/paste.js

DataTransfer is not defined in all browsers

pkaminski opened this issue · 5 comments

I think you need to checkof typeof DataTransfer !== 'undefined' before checking if it has an items property.

Thanks buddy 😆 good catch!

Thanks for the fix, but I have bad news: it breaks in IE10 (and older, presumably):
TypeError: Object doesn't support property or method '__lookupGetter__'

I hate IE as much as the next person, but it would probably still be good if Reviewable didn't crash immediately on load if you're stuck using IE10 for some reason.

@pkaminski I'll fix that quickly, and it seems that I have to set up a cross-browsers CI for not breaking behaviours of the current browser elements.

No problem, thanks!

@pkaminski I've shipped the fix with 0.0.21. :)