Merge branch 'master' into skylight

skylight
Eugen Rochko 2017-04-13 22:22:26 +02:00
commit 791c0edfe8
2 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,7 @@ const UI = React.createClass({
this.dragTargets.push(e.target);
}
if (e.dataTransfer && e.dataTransfer.files.length > 0) {
if (e.dataTransfer && e.dataTransfer.items.length > 0) {
this.setState({ draggingOver: true });
}
},

View File

@ -62,7 +62,9 @@ module Mastodon
config.middleware.use Rack::Attack
config.middleware.use Rack::Deflater
config.browserify_rails.commandline_options = '--transform [ babelify --presets [ es2015 react ] ] --extension=".jsx"'
config.browserify_rails.source_map_environments << 'development'
config.browserify_rails.commandline_options = '--transform [ babelify --presets [ es2015 react ] ] --extension=".jsx"'
config.browserify_rails.evaluate_node_modules = true
config.to_prepare do
Doorkeeper::AuthorizationsController.layout 'public'