diff --git a/js/dnd.js b/js/dnd.js index 1029dbcbb5c..6e62e3bae86 100644 --- a/js/dnd.js +++ b/js/dnd.js @@ -45,7 +45,7 @@ module.exports.onDragOver = (dragType, sourceBoundingRect, draggingOverKey, drag e.preventDefault() e.dataTransfer.dropEffect = 'move' - // Otherise, only accept it if we have some frameProps + // Otherwise, only accept it if we have some frameProps if (!dndData.hasDragData(e.dataTransfer, dragType)) { windowActions.setIsBeingDraggedOverDetail(dragType, draggingOverKey, { draggingOverLeftHalf: false, diff --git a/js/dndData.js b/js/dndData.js index 74113fc2dd9..e54dd5d7659 100644 --- a/js/dndData.js +++ b/js/dndData.js @@ -5,7 +5,7 @@ const Immutable = require('immutable') module.exports.hasDragData = (dataTransfer, dragType) => { - return !!dataTransfer.getData(`application/x-brave-${dragType}`) + return dataTransfer.types.includes(`application/x-brave-${dragType}`) } module.exports.getDragData = (dataTransfer, dragType) => {