From 14c79c941153fb91f99e19761217c2af52d99f19 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Wed, 5 Jan 2022 15:45:38 +0100 Subject: [PATCH] Remove allsettled polyfill Following https://github.com/jupyterlab/jupyterlab/pull/11741 --- app/index.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/app/index.js b/app/index.js index b5cd548d..0cf92499 100644 --- a/app/index.js +++ b/app/index.js @@ -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');