Unfortunately, this didn't work. When I turned the power back on the light is on but the switch doesn't turn it off.
I disconnected the black wires and added one switch wire to the black incoming wire from the wall and the black wire going to the light fixture.
I disconnected the white wires and added the other switch wire to the white incoming wire from the wall to the white wire going to the light fixture.
General C&ontractor
Licensed Construction Supervisor & Remodeling Contractor 35+ years experience