浏览代码

Fix polyfill

Steven Silvester 9 年之前
父节点
当前提交
a9572e0b3f
共有 2 个文件被更改,包括 4 次插入2 次删除
  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';