Pass window.id through if not None