From 242934c01684c7f4a2e6f526ba672466b0afc506 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 1 May 2017 17:52:53 -0300 Subject: [PATCH] Remove dependency on jquery-migrate.js for browser detection * ref #4628 Signed-off-by: Morris Jobke --- apps/files/js/file-upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 75d9d0ebdf..1c5758ca50 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -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');