Fix drag and drop error when image is missing
This commit is contained in:
parent
cfca5b76fb
commit
c42b66bdcc
@ -378,7 +378,10 @@ export default class AnimeNotifier {
|
||||
}
|
||||
|
||||
let image = element.getElementsByClassName("anime-list-item-image")[0]
|
||||
|
||||
if(image) {
|
||||
e.dataTransfer.setDragImage(image, 0, 0)
|
||||
}
|
||||
|
||||
let name = element.getElementsByClassName("anime-list-item-name")[0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user