Fix copy bug with multiple windows

Copy URLs of the current window, not the last one.