The issue with a generic cord is that it won't connect the earth pin on those chargers.
But it does work in a pinch.
But it does work in a pinch.
Nor does the two-prong "wall wart mode" tip many of them shipped with. The ground was only connected on the extended cord attachment.