dimanche 29 janvier 2017

Can't find variable: Promise on iOS 7

iOS 7 Safari is reporting the error Can't find variable: Promise:

new Promise(function(resolve, reject) {
.
.
.

White other browsers don't have this issue, I found this similar question where Robert gave a solution to add new Ember.RSVP.Promise instead of the new Promise.

My problem is that I'm not using jQuery and that makes all browsers return an error that Ember is not defined, and I found that adding Ember.min.js solves the issue, but that adds extra 129.96 KB to my page which is not good at all to my project.

I just want to fix the problem for iOS7, and I appreciate if somebody who knows how he tell us.




Aucun commentaire:

Enregistrer un commentaire