weird discharge

To
This came out as a glob when I was in the bath. 36 weeks. Any ideas? Been having contractions every 2-3 min for the past 24 hours or so