How to salt potatoes?
Add the salt in te bowl of egg and potato mixture, right before pouring the mix to the pan. You don't salt the potatoes you salt the whole tortilla. 

Even if you use onion. The onion inside the Spanish tortilla tastes always sweet.