Since dataTransfer.types can vary based on browser, support both indexOf and contains.