Skip to content

Commit

Permalink
check if document is defined to support 🚀 fastboot
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-evans committed Jan 21, 2017
1 parent 66ce18d commit 8437e9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/components/file-dropzone/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const { service } = Ember.inject;
const DATA_TRANSFER = 'DATA_TRANSFER' + uuid.short();

let supported = (function () {
return 'draggable' in document.createElement('span');
return window.hasOwnProperty('document') &&
'draggable' in document.createElement('span');
}());

export default Ember.Component.extend({
Expand Down

0 comments on commit 8437e9e

Please sign in to comment.