Steven Silvester hace 9 años
padre
commit
a9572e0b3f
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 2 1
      examples/console/src/index.ts
  2. 2 1
      examples/notebook/src/index.ts

+ 2 - 1
examples/console/src/index.ts

@@ -44,7 +44,8 @@ import {
   Widget
 } from 'phosphor-widget';
 
-import 'es6-promise';  // Polyfill for IE11
+// ES6 Promise polyfill
+require('es6-promise').polyfill();
 
 import 'jupyter-js-notebook/lib/index.css';
 import 'jupyter-js-notebook/lib/theme.css';

+ 2 - 1
examples/notebook/src/index.ts

@@ -44,7 +44,8 @@ import {
   Widget
 } from 'phosphor-widget';
 
-import 'es6-promise';  // Polyfill for IE11
+// ES6 Promise polyfill
+require('es6-promise').polyfill();
 
 import 'jupyter-js-notebook/lib/index.css';
 import 'jupyter-js-notebook/lib/theme.css';