Place the chocolate and coconut oil in a microwave safe dish. Melt together, stopping the microwave and stirring every 30 seconds or so, until the mixture is melted and completely smooth. Add the vanilla and salt if using, and stir to combine. Cool to room temperature, and then pour over ice cream.