Browse Source

Fix polyfill

Steven Silvester 9 years ago
parent
commit
a9572e0b3f
2 changed files with 4 additions and 2 deletions
  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';