I believe it's working as a conjunction in that sentence, but don't hold me to that unless someone else says the same thing. You could get away without saying that if you wanted to, so it really isn't that integral to the meaning of the sentence. I know this probably doesn't help much, but it's the best I can come up with right now.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.