Salmonella is killed by cooking, so if you already ate the onion but you cooked it first, you'll probably be okay.continue