Skip to content

Commit 0f38b6e

Browse files
committed
Add initializer setting window.Promise to RSVP.Promise
1 parent bbc0e6d commit 0f38b6e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import RSVP from 'rsvp';
2+
3+
export function initialize() {
4+
// async/await is using window.Promise by default and we want async/await to
5+
// use RSVP instead which is properly integrated with Ember's runloop
6+
window.Promise = RSVP.Promise;
7+
}
8+
9+
export default { initialize };

0 commit comments

Comments
 (0)