In a small saucepan add lime juice, orange juice, sugar, salt and chili pepper; bring to a boil.
Add the onion and reduce heat. Simmer for about 1 minute until onions just start to soften.
Remove from heat and let mixture cool completely before serving.
Store in a glass jar in the fridge. These will keep for at least two weeks.