Although I'd say "was" is probably used slightly more often, I would consider the use of "were" to be formally correct, and the use of "was" to be more informal.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.