A note on electric-magnetic duality and soft charges