In the same pan, fry the chopped onion until light golden brown. Then add the chopped garlic and lightly fry together with the onion.