Browse Source

prevent drag n drop

v0.25
pbca26 7 years ago
parent
commit
bca24bf6d7
  1. 3
      react/src/components/main/main.js

3
react/src/components/main/main.js

@ -23,6 +23,9 @@ class Main extends React.Component {
if (appVersion) {
document.title = `${appVersion.name} (v${appVersion.version.replace('version=', '')}${mainWindow.arch === 'x64' ? '' : '-32bit'}-beta)`;
}
document.addEventListener('dragover', event => event.preventDefault());
document.addEventListener('drop', event => event.preventDefault());
}
componentWillMount() {

Loading…
Cancel
Save