Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #318 from martinRenou/remove_allsettled
Browse files Browse the repository at this point in the history
Remove allsettled polyfill
  • Loading branch information
jtpio authored Jan 5, 2022
2 parents 6163f35 + 14c79c9 commit 8be5124
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@

import { PageConfig, URLExt } from '@jupyterlab/coreutils';

// Promise.allSettled polyfill, until our supported browsers implement it
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled
if (Promise.allSettled === undefined) {
Promise.allSettled = promises =>
Promise.all(
promises.map(promise =>
promise.then(
value => ({
status: 'fulfilled',
value
}),
reason => ({
status: 'rejected',
reason
})
)
)
);
}

require('./style.js');
require('./extraStyle.js');

Expand Down

0 comments on commit 8be5124

Please sign in to comment.