Put the potatoes and onions back in the pan in a single layer and lower the heat. Beat eggs with salt and pepper and pour egg mixture into the pan.