DataTransfer is not defined in all browsers
pkaminski opened this issue · 5 comments
pkaminski commented
I think you need to checkof typeof DataTransfer !== 'undefined'
before checking if it has an items
property.
layerssss commented
Thanks buddy 😆 good catch!
pkaminski commented
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.
layerssss commented
@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.
pkaminski commented
No problem, thanks!
layerssss commented
@pkaminski I've shipped the fix with 0.0.21. :)