source: frontend/node_modules/promise/polyfill-done.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 350 bytes
Line 
1// should work in any browser without browserify
2
3if (typeof Promise.prototype.done !== 'function') {
4 Promise.prototype.done = function (onFulfilled, onRejected) {
5 var self = arguments.length ? this.then.apply(this, arguments) : this
6 self.then(null, function (err) {
7 setTimeout(function () {
8 throw err
9 }, 0)
10 })
11 }
12}
Note: See TracBrowser for help on using the repository browser.