javascript

  • Stack Overflow works best with JavaScript enabled
  • No the ajax call is asynchronous so it is not attached to the click event.
  • sign up log in tour help
  • Is the log from chrome (mac) chrome console log
  • Why is the window undefined on safari in $http.get(…).

We have a problem when downloading a pdf document on a safari on MacOS Sierra. We get a dataUrl from a server and then use a $window.open with a createObjectURL to push the file to the browser. But all that doesn’t actually matters. But here is a snippet to reproduce my problem:

@BE_BeeCee: #angular #angular2 #javascript #Safari @angularjs weird behavior, who knows the answer to my question

We have a problem when downloading a pdf document on a safari on MacOS Sierra. We get a dataUrl from a server and then use a $window.open with a createObjectURL to push the file to the browser. But all that doesn’t actually matters. But here is a snippet to reproduce my problem:

I created a JsFiddle to show the problem, the url is: http://jsfiddle.net/ADukg/9023/

Here is the log from chrome (mac)

And here is the log from safari 10 (mac)

Why is the window undefined on safari in $http.get(…).then(…)

javascript

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.