Heat olive oil in a large skillet over medium heat. Add the finely chopped onion and cook until softened, about 3 minutes.
Fold the tortilla in half to cover the fillings. Cook for 1–3 minutes until the bottom is golden brown and the cheese starts to melt.