, '_blank'); not working on iMac/Safari

The Solution to, '_blank'); not working on iMac/Safari is

Safari is blocking any call to which is made inside an async call.

The solution that I found to this problem is to call before making an asnyc call and set the location when the promise resolves.

var windowReference =;

myService.getUrl().then(function(url) {
     windowReference.location = url;

~ Answered on 2016-09-08 09:39:46

Most Viewed Questions: