File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/addons/addons/drag-drop Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ export default async function ({ addon, console }) {
64
64
callback = ( files ) => {
65
65
// do not use HD uploads if we drop a GIF or Sprite
66
66
const hasGif = [ ...files ] . some ( f => f . type === "image/gif" ) ;
67
- const isSpriteSelector = el . className . includes ( "sprite-selector_sprite- selector" ) ;
68
- const hdFilter = ! isSpriteSelector && ! hasGif && addon . settings . get ( "use-hd-upload" ) ? "" : ":not(.sa-better-img-uploads-input)" ;
67
+ const hasSprite = el . className . includes ( "sprite-selector" ) && [ ... files ] . some ( f => f . type === "application/octet-stream ") ;
68
+ const hdFilter = ! hasSprite && ! hasGif && addon . settings . get ( "use-hd-upload" ) ? "" : ":not(.sa-better-img-uploads-input)" ;
69
69
const fileInput = el . querySelector ( 'input[class*="action-menu_file-input"]' + hdFilter ) ;
70
70
fileInput . files = files ;
71
71
fileInput . dispatchEvent ( new Event ( "change" , { bubbles : true } ) ) ;
You can’t perform that action at this time.
0 commit comments