From bcc992d2aa5c69e3f0d54e05356b6801b6de5bd7 Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Wed, 8 Feb 2017 10:54:58 +0100 Subject: [PATCH] Removed dnd in url bar --- app/renderer/components/urlBarIcon.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/renderer/components/urlBarIcon.js b/app/renderer/components/urlBarIcon.js index d1a12fb75b1..438126d6ba5 100644 --- a/app/renderer/components/urlBarIcon.js +++ b/app/renderer/components/urlBarIcon.js @@ -6,8 +6,6 @@ const React = require('react') const ImmutableComponent = require('../../../js/components/immutableComponent') const windowActions = require('../../../js/actions/windowActions') const cx = require('../../../js/lib/classSet') -const dragTypes = require('../../../js/constants/dragTypes') -const dndData = require('../../../js/dndData') const {isSourceAboutUrl} = require('../../../js/lib/appUrlUtil') const searchIconSize = 16 @@ -28,7 +26,6 @@ class UrlBarIcon extends ImmutableComponent { constructor () { super() this.onClick = this.onClick.bind(this) - this.onDragStart = this.onDragStart.bind(this) } get isSecure () { return this.props.isHTTPPage && @@ -94,14 +91,8 @@ class UrlBarIcon extends ImmutableComponent { } windowActions.setSiteInfoVisible(true) } - onDragStart (e) { - dndData.setupDataTransferURL(e.dataTransfer, this.props.location, this.props.title) - dndData.setupDataTransferBraveData(e.dataTransfer, dragTypes.TAB, this.activeFrame) - } render () { return