Fixed detection of the Promise global