Fleas in the house & pregnant

Ha
So somehow my cats managed to get fleas even though they're strictly inside just wondering if anyone knows of anyway to get rid of the fleas in my house while being pregnant? I wouldn't be surprised if I was screwed lol