Livingston beat Falkirk 2-1 on Friday night to close the gap on the William Hill Championship leaders to a single point.
Robbie Muirhead (penalty) and Reece McAlear scored for Livi in the first half, with Brad Spencer pulling one back from the penalty spot in 55 minutes.
Ayr United now have the chance to go top of the table when they face Hamilton Accies at New Douglas Park on Saturday.