Meanwhile, in a small saucepan over medium heat, cook the onion and chile in the oil until golden. Add the remaining ingredients except the chocolate. Bring to a boil, reduce the heat and simmer until thickened, about 5 minutes. Off the heat, add the chocolate, stirring until smooth. Adjust the seasoning.