In the same pan add some more butter and needed and of the onions mixing well. Add the vinegar until it caramelises the onions. Then add the wine and the beef stock bring to simmer and cook until it thickens. Add some cornflour to help with thickening.