Fix drag and drop error when image is missing

This commit is contained in:
Eduard Urbach 2019-03-04 11:28:51 +09:00
parent cfca5b76fb
commit c42b66bdcc

View File

@ -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]