Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Removed dnd in url bar
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Feb 8, 2017
1 parent f7a5e17 commit bcc992d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/renderer/components/urlBarIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 &&
Expand Down Expand Up @@ -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 <span
onDragStart={this.onDragStart}
draggable
onClick={this.onClick}
className={this.iconClasses}
style={this.iconStyles} />
Expand Down

0 comments on commit bcc992d

Please sign in to comment.