Peel off onions and eggplant. Cut them into small pieces. Sprinkle some salt on the chopped eggplant and leave it for 30 minutes until the bitterness sweat out. Then rinse the eggplants and dry them with kitchen towel.Heat the pan, add the oil. Place onions in the pan and let it to cook for 6 minutes.