Alternatively you can grate them using a cheese grater. Place the grated onions and potatoes together in a colander and press on them to release excess moisture.
Mix the drained potatoes and onion with the salt, flour, and egg until just combined. Preheat oven to 250 degrees and line a sheet pan with paper towels or a rack.