Melt the butter in a pot until it starts to foam, add the potatoes and onions and toss until they are covered in butter. Sprinkle with the salt and a good grind of pepper. Reduce the heat to low, cover with a lid or plate and sweat gently for about 10 minutes.