Skip to content

Commit

Permalink
Remove dependency on jquery-migrate.js for browser detection
Browse files Browse the repository at this point in the history
* ref #4628

Signed-off-by: Morris Jobke <[email protected]>
  • Loading branch information
MorrisJobke committed May 1, 2017
1 parent dba55f9 commit 242934c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ OC.Uploader.prototype = _.extend({
// dropping a folder in firefox doesn't cause a drop event
// this is simulated by simply invoke disabling all classes
// once no dragover event isn't noticed anymore
if ($.browser['mozilla']) {
if (/Firefox/i.test(navigator.userAgent)) {
disableClassOnFirefox();
}
$('#emptycontent .icon-folder').addClass('icon-filetype-folder-drag-accept');
Expand Down

0 comments on commit 242934c

Please sign in to comment.