diff --git a/www/common/common-file.js b/www/common/common-file.js index a698f5b49..0093b9ef6 100644 --- a/www/common/common-file.js +++ b/www/common/common-file.js @@ -254,6 +254,7 @@ define([ var createAreaHandlers = File.createDropArea = function ($area, $hoverArea) { var counter = 0; if (!$hoverArea) { $hoverArea = $area; } + if (!$area) { return; } $hoverArea .on('dragenter', function (e) { e.preventDefault(); diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 92416adc1..94499dbb5 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1243,6 +1243,13 @@ define([ style: 'font:'+size+' FontAwesome' }); break; + case 'savetodrive': + button = $('