gauravgango / gaurav-angular-indexeddb

An indexedDB wrapper for Angular JS.
http://gauravgango.github.io/gaurav-angular-indexeddb/
MIT License
9 stars 1 forks source link

Doesn't work in IE #21

Open damiangreen opened 8 years ago

damiangreen commented 8 years ago

TypeError: Object doesn't support this action

 at CreateDB (http://localhost/Scripts/angular-indexeddb.js:39:13)
 at CreateTables (http://localhost/Scripts/angular-indexeddb.js:241:13)
 at Anonymous function (http://localhost/Scripts/angular-indexeddb.js:2615:13)

looks like this line is the culprit:

self.open = new $window.Promise(function (resolve, reject) {
ankurk91 commented 8 years ago

It seems like IE 11 does not support native promise http://caniuse.com/#feat=promises

A polyfill is available https://github.com/stefanpenner/es6-promise