That kind of toggle switch has no polarity; you can connect either of its black wires to either of the open wires. But it doesn't look to me like you have that bulb screwed all the way into its socket.
Please be very careful. Before you connect the thing to the wall outlet, be sure to put wire nuts on the connections, which will both secure and insulate them, and be sure to have the bulb screwed all the way in. There is a lot of bare metal sticking up at the base of the bulb, this does not look right, and this "could" be "live" when the lamp circuit is plugged in, even with the switch off, depending on whether the outlet you plug it into is wired correctly or not. That is, very dangerous if you touch it.